Commit 59dca4a7 by Calen Pennington

Merge pull request #2500 from cpennington/edx_ansible-lifecycle-tags

Tag edx_ansible with the appropriate lifecycle tags
parents f4654f4c 56faf1e1
......@@ -4,6 +4,8 @@
dest={{ edx_ansible_code_dir }} repo={{ edx_ansible_source_repo }} version={{ configuration_version }}
accept_hostkey=yes
sudo_user: "{{ edx_ansible_user }}"
tags:
- install:code
- name : install edx_ansible venv requirements
pip: >
......@@ -11,26 +13,36 @@
extra_args="-i {{ COMMON_PYPI_MIRROR_URL }}"
sudo_user: "{{ edx_ansible_user }}"
with_items: "{{ edx_ansible_requirements_files }}"
tags:
- install:app-requirements
- name: create update script
template: >
dest={{ edx_ansible_app_dir}}/update
src=update.j2 owner={{ edx_ansible_user }} group={{ edx_ansible_user }} mode=755
tags:
- install:configuration
- name: create a symlink for update.sh
file: >
src={{ edx_ansible_app_dir }}/update
dest={{ COMMON_BIN_DIR }}/update
state=link
tags:
- install:configuration
- name: create a symlink for ansible-playbook
file: >
src={{ edx_ansible_venv_bin }}/ansible-playbook
dest={{ COMMON_BIN_DIR }}/ansible-playbook
state=link
tags:
- install:configuration
- name: create a symlink for the playbooks dir
file: >
src={{ edx_ansible_code_dir }}/playbooks
dest={{ COMMON_CFG_DIR }}/playbooks
state=link
tags:
- install:configuration
......@@ -29,6 +29,8 @@
home="{{ edx_ansible_app_dir }}"
createhome=no
shell=/bin/false
tags:
- install:base
- name: create edx_ansible app and venv dir
file: >
......@@ -40,8 +42,12 @@
- "{{ edx_ansible_app_dir }}"
- "{{ edx_ansible_data_dir }}"
- "{{ edx_ansible_venvs_dir }}"
tags:
- install:base
- name: install a bunch of system packages on which edx_ansible relies
apt: pkg={{','.join(edx_ansible_debian_pkgs)}} state=present
tags:
- install:system-requirements
- include: deploy.yml tags=deploy
......@@ -195,3 +195,7 @@
# any reason, this will ensure that it is started up again.
- name: make sure nginx has started
service: name=nginx state=started
tags:
- manage
- manage:start
- manage:devstack
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment