ansible-config/roles/website/updates/tasks/main.yml

25 lines
485 B
YAML
Raw Normal View History

2017-02-10 22:51:55 +01:00
---
2017-10-03 17:30:06 +02:00
- name: create ffupdates user
user:
name: ffupdates
- name: create updates root
file:
path: "{{ updates_root }}"
owner: "{{ updates_owner }}"
2017-11-04 16:54:59 +01:00
group: "{{ updates_group }}"
2017-10-03 17:30:06 +02:00
state: directory
2017-02-10 22:51:55 +01:00
- name: template site
template:
2020-04-08 23:30:56 +02:00
src: updates
dest: /etc/nginx/sites-available/
2017-02-10 22:51:55 +01:00
notify: reload nginx
- name: enable site
file:
2020-04-08 23:30:56 +02:00
src: /etc/nginx/sites-available/updates
dest: /etc/nginx/sites-enabled/updates
2017-02-10 22:51:55 +01:00
state: link
notify: reload nginx