blender-open-data/playbooks/enable_maintenance.yaml

15 lines
276 B
YAML

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