rut-prod-ops/ansible/playbooks/cosmos_lock.yaml

13 lines
334 B
YAML
Raw Normal View History

---
- name: Create a file to pause Cosmos
hosts: all
become: yes
tasks:
- name: Ensure the file /etc/no-automatic-cosmos exists with specific content
ansible.builtin.copy:
dest: /etc/no-automatic-cosmos
content: "Cosmos paused by Ansible\n"
owner: root
group: root
mode: '0644'