Rename the ara role to ara_api and move nginx out to it's own role
Moving nginx out to it's own role allows us to re-use it for ara-web. Renaming ara to ara_api and namespacing it's variables helps removing ambiguities and opportunities for clashing names. Change-Id: Ie1fc53fa25b00bc86aafda708df9866f02ced6fd
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
---
|
||||
# Copyright (c) 2019 Red Hat, Inc.
|
||||
#
|
||||
# This file is part of ARA Records Ansible.
|
||||
#
|
||||
# ARA Records Ansible is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# ARA Records Ansible is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with ARA Records Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
- name: Ensure the database directory exists
|
||||
become: "{{ (ansible_user_dir in ara_api_database_name) | ternary(false, true) }}"
|
||||
file:
|
||||
path: "{{ ara_api_database_name | dirname }}"
|
||||
state: directory
|
||||
|
||||
- name: Run SQL migrations
|
||||
become: "{{ (ansible_user_dir in ara_api_database_name) | ternary(false, true) }}"
|
||||
environment:
|
||||
ARA_SETTINGS: "{{ ara_api_settings }}"
|
||||
PATH: "{{ path_with_virtualenv | default(omit) }}"
|
||||
command: ara-manage migrate
|
||||
Reference in New Issue
Block a user