diff options
Diffstat (limited to 'roles/cosmos/tasks')
| -rw-r--r-- | roles/cosmos/tasks/main.yml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/roles/cosmos/tasks/main.yml b/roles/cosmos/tasks/main.yml new file mode 100644 index 0000000..c44505e --- /dev/null +++ b/roles/cosmos/tasks/main.yml | |||
| @@ -0,0 +1,22 @@ | |||
| 1 | --- | ||
| 2 | - block: | ||
| 3 | - name: Ensure cosmos web root exists | ||
| 4 | ansible.builtin.file: | ||
| 5 | path: /srv/http/cosmos.party | ||
| 6 | state: directory | ||
| 7 | owner: cmmm | ||
| 8 | group: www-data | ||
| 9 | mode: '0775' | ||
| 10 | |||
| 11 | - name: Deploy cosmos nginx site configuration | ||
| 12 | ansible.builtin.template: | ||
| 13 | src: nginx.conf.j2 | ||
| 14 | dest: /etc/nginx/http.d/cosmos.conf | ||
| 15 | owner: root | ||
| 16 | group: root | ||
| 17 | mode: '0444' | ||
| 18 | validate: nginx-validate %s /etc/nginx/http.d/cosmos.conf | ||
| 19 | notify: Reload nginx | ||
| 20 | |||
| 21 | tags: | ||
| 22 | - cosmos | ||
