Commit 9e230e95 by Edward Zarecor

Updating based on CR, and adding highlevel tag until wildcards exist.

parent 6371b6ad
......@@ -55,6 +55,7 @@
shell=/bin/false
generate_ssh_key=yes
tags:
- install
- install:base
# Assumes that the home directory has been created above.
......@@ -75,6 +76,7 @@
- "data"
- "staticfiles"
tags:
- install
- install:base
- name: create /edx/var and /edx/etc dirs
......@@ -88,6 +90,7 @@
- /edx/var
- /edx/etc
tags:
- install
- install:base
- name: create edx_service log dir
......@@ -99,6 +102,7 @@
with_items:
- "{{ COMMON_LOG_DIR }}/{{ edx_service_name }}"
tags:
- install
- install:base
- name: write out app config file
......@@ -108,6 +112,7 @@
mode=0644
when: edx_service_config is defined
tags:
- install
- install:configuration
- name: install a bunch of system packages on which edx_service relies
......@@ -115,6 +120,7 @@
with_items: edx_service_packages.debian
when: ansible_distribution in common_debian_variants
tags:
- install
- install:system-requirements
- name: install a bunch of system packages on which edx_service relies
......@@ -122,6 +128,7 @@
with_items: edx_service_name.redhat
when: ansible_distribution in common_redhat_variants
tags:
- install
- install:system-requirements
- name: set git fetch.prune to ignore deleted remote refs
......@@ -129,6 +136,7 @@
sudo_user: "{{ edx_service_user }}"
when: edx_service_repos is defined
tags:
- install
- install:code
- name: validate git protocol
......@@ -136,6 +144,7 @@
when: (item.PROTOCOL != "https") and (item.PROTOCOL != "ssh") and edx_service_repos is defined
with_items: edx_service_repos
tags:
- install
- install:code
- name: install read-only ssh key
......@@ -146,6 +155,7 @@
when: item.PROTOCOL == "ssh" and edx_service_repos is defined
with_items: edx_service_repos
tags:
- install
- install:code
- name: checkout code over ssh
......@@ -158,6 +168,7 @@
when: item.PROTOCOL == "ssh" and edx_service_repos is defined
with_items: edx_service_repos
tags:
- install
- install:code
- name: checkout code over https
......@@ -169,6 +180,7 @@
when: item.PROTOCOL == "https" and edx_service_repos is defined
with_items: edx_service_repos
tags:
- install
- install:code
- name: get instance information
......
......@@ -4,6 +4,7 @@
owner={{ supervisor_user }} group={{ common_web_user }} mode=0644
with_items: ['xqueue', 'xqueue_consumer']
tags:
- install
- install:configuration
- name: "enabling supervisor scripts - xqueue, xqueue consumer"
......@@ -15,6 +16,7 @@
with_items: ['xqueue', 'xqueue_consumer']
when: not disable_edx_services
tags:
- install
- install:configuration
- name: "add gunicorn configuration file"
......@@ -24,6 +26,7 @@
notify:
- restart xqueue
tags:
- install
- install:configuration
- name: create xqueue application config
......@@ -32,6 +35,7 @@
notify:
- restart xqueue
tags:
- install
- install:configuration
- name: create xqueue auth file
......@@ -40,6 +44,7 @@
notify:
- restart xqueue
tags:
- install
- install:configuration
# Do A Checkout
......@@ -52,6 +57,7 @@
notify:
- restart xqueue
tags:
- install
- install:code
......@@ -64,6 +70,7 @@
notify:
- restart xqueue
tags:
- install
- install:application-requirements
# Install the python post requirements into {{ xqueue_venv_dir }}
......@@ -75,6 +82,7 @@
notify:
- restart xqueue
tags:
- install
- install:application-requirements
# If there is a common user for migrations run migrations using his username
......@@ -90,6 +98,7 @@
notify:
- restart xqueue
tags:
- migrate
- migrate:db
- name: create users
......@@ -99,6 +108,7 @@
notify:
- restart xqueue
tags:
- manage
- manage:app-users
# call supervisorctl update. this reloads
......@@ -111,7 +121,7 @@
register: supervisor_update
changed_when: supervisor_update.stdout is defined and supervisor_update.stdout != ""
when: not disable_edx_services
- name: ensure xqueue, consumer is running
supervisorctl: >
name={{ item }}
......@@ -123,6 +133,7 @@
- xqueue_consumer
when: not disable_edx_services
tags:
- manage
- manage:start
- name: create a symlink for venv python
......@@ -134,6 +145,7 @@
- python
- pip
tags:
- install
- install:base
- set_fact: xqueue_installed=true
......@@ -15,6 +15,7 @@
notify:
- restart xqueue
tags:
- install
- install:base
- name: create xqueue app and venv dir
......@@ -29,6 +30,7 @@
- "{{ xqueue_app_dir }}"
- "{{ xqueue_venvs_dir }}"
tags:
- install
- install:base
- name: install a bunch of system packages on which xqueue relies
......@@ -36,6 +38,7 @@
notify:
- restart xqueue
tags:
- install
- install:system-requirements
- include: deploy.yml tags=deploy
......
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