Commit 665c4a97 by Edward Zarecor

Adding tags to forum role

parent e25b9603
...@@ -8,6 +8,9 @@ ...@@ -8,6 +8,9 @@
mode=0644 mode=0644
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
register: forum_supervisor register: forum_supervisor
tags:
- install
- install:configuration
- name: enable the supervisor config - name: enable the supervisor config
file: > file: >
...@@ -20,7 +23,10 @@ ...@@ -20,7 +23,10 @@
sudo_user: "{{ supervisor_user }}" sudo_user: "{{ supervisor_user }}"
when: not disable_edx_services when: not disable_edx_services
register: forum_supervisor register: forum_supervisor
tags:
- install
- install:confugration
- name: create the supervisor wrapper - name: create the supervisor wrapper
template: > template: >
src={{ forum_supervisor_wrapper|basename }}.j2 src={{ forum_supervisor_wrapper|basename }}.j2
...@@ -28,6 +34,9 @@ ...@@ -28,6 +34,9 @@
mode=0755 mode=0755
sudo_user: "{{ forum_user }}" sudo_user: "{{ forum_user }}"
notify: restart the forum service notify: restart the forum service
tags:
- install
- install:configuration
- name: git checkout forum repo into {{ forum_code_dir }} - name: git checkout forum repo into {{ forum_code_dir }}
git: > git: >
...@@ -36,6 +45,9 @@ ...@@ -36,6 +45,9 @@
sudo_user: "{{ forum_user }}" sudo_user: "{{ forum_user }}"
register: forum_checkout register: forum_checkout
notify: restart the forum service notify: restart the forum service
tags:
- install
- install:code
# TODO: This is done as the common_web_user # TODO: This is done as the common_web_user
# since the process owner needs write access # since the process owner needs write access
...@@ -45,6 +57,9 @@ ...@@ -45,6 +57,9 @@
sudo_user: "{{ common_web_user }}" sudo_user: "{{ common_web_user }}"
environment: "{{ forum_environment }}" environment: "{{ forum_environment }}"
notify: restart the forum service notify: restart the forum service
tags:
- install
- install:code
# call supervisorctl update. this reloads # call supervisorctl update. this reloads
# the supervisorctl config and restarts # the supervisorctl config and restarts
...@@ -56,6 +71,9 @@ ...@@ -56,6 +71,9 @@
register: supervisor_update register: supervisor_update
changed_when: supervisor_update.stdout is defined and supervisor_update.stdout != "" changed_when: supervisor_update.stdout is defined and supervisor_update.stdout != ""
when: not disable_edx_services when: not disable_edx_services
tags:
- install
- install:configuration
- name: ensure forum is started - name: ensure forum is started
supervisorctl: > supervisorctl: >
...@@ -64,6 +82,8 @@ ...@@ -64,6 +82,8 @@
config={{ supervisor_cfg }} config={{ supervisor_cfg }}
state=started state=started
when: not disable_edx_services when: not disable_edx_services
tags:
- manage
- include: test.yml tags=deploy - include: test.yml tags=deploy
......
--- 1;2802;0c---
# forum # forum
# #
...@@ -27,12 +27,18 @@ ...@@ -27,12 +27,18 @@
createhome=no createhome=no
shell=/bin/false shell=/bin/false
notify: restart the forum service notify: restart the forum service
tags:
- install
- install:base
- name: create forum app dir - name: create forum app dir
file: > file: >
path="{{ forum_app_dir }}" state=directory path="{{ forum_app_dir }}" state=directory
owner="{{ forum_user }}" group="{{ common_web_group }}" owner="{{ forum_user }}" group="{{ common_web_group }}"
notify: restart the forum service notify: restart the forum service
tags:
- install
- install:base
- name: setup the forum env - name: setup the forum env
template: > template: >
...@@ -41,11 +47,17 @@ ...@@ -41,11 +47,17 @@
mode=0644 mode=0644
notify: notify:
- restart the forum service - restart the forum service
tags:
- install
- install:base
- name: create {{ forum_data_dir }} - name: create {{ forum_data_dir }}
file: > file: >
path={{ forum_data_dir }} state=directory path={{ forum_data_dir }} state=directory
owner="{{ common_web_user }}" group="{{ common_web_group }}" owner="{{ common_web_user }}" group="{{ common_web_group }}"
mode=0777 mode=0777
tags:
- install
- install:base
- include: deploy.yml tags=deploy - include: deploy.yml tags=deploy
\ No newline at end of file
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