devfund-website/playbooks/enable_maintenance.yaml

15 lines
270 B
YAML

---
- name: Enable maintenance mode
hosts: https
become: yes
gather_facts: no
tasks:
- name: Touch maintenance flag
file:
path: "{{ dir.errors }}/maintenance_on"
state: present
notify:
- test nginx
- reload nginx