nginx/tasks/status.yml
2024-12-17 17:20:50 +01:00

16 lines
366 B
YAML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
- name: "nginx | copy status vhost"
copy:
src: "status.conf"
dest: "/etc/nginx/sites-available/00-status.conf"
mode: "0644"
force: yes
backup: yes
when: is_nginx
- name: "nginx | activate the status vhost"
file:
src: "/etc/nginx/sites-available/00-status.conf"
dest: "/etc/nginx/sites-enabled/00-status.conf"
state: link