ansible/roles/mete/tasks/main.yml
2021-02-16 23:38:59 +00:00

19 lines
438 B
YAML

---
- name: Install mete systemd unit
template:
src: service.j2
dest: "/etc/systemd/system/mete@{{ mete_domain }}.service"
- name: Install mete nginx site
notify: reload nginx
template:
src: nginx.j2
dest: /etc/nginx/sites-available/{{ mete_domain }}
- name: Activate mete site
file:
src: /etc/nginx/sites-available/{{ mete_domain }}
dest: /etc/nginx/sites-enabled/{{ mete_domain }}
state: link
...