24 lines
503 B
YAML
24 lines
503 B
YAML
---
|
|
- name: create ffupdates user
|
|
user:
|
|
name: ffupdates
|
|
|
|
- name: create updates root
|
|
file:
|
|
path: "{{ updates_root }}"
|
|
owner: "{{ updates_owner }}"
|
|
group: "{{ updates_group }}"
|
|
state: directory
|
|
|
|
- name: template site
|
|
template:
|
|
src: templates/site.j2
|
|
dest: /etc/nginx/sites-available/{{ site }}
|
|
notify: reload nginx
|
|
|
|
- name: enable site
|
|
file:
|
|
src: ../sites-available/{{ site }}
|
|
dest: /etc/nginx/sites-enabled/{{ site }}
|
|
state: link
|
|
notify: reload nginx
|