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

13 lines
413 B
YAML

---
- name: Remove the no_automatic_cosmos and run cosmos.s
hosts: all
become: yes
serial: 1
tasks:
- name: Remove the file /etc/no-automatic-cosmos if it exists
ansible.builtin.file:
path: /etc/no-automatic-cosmos
state: absent
- name: Run cosmos
ansible.builtin.command: scriptherder --mode wrap --syslog --name cosmos -- /usr/local/bin/run-cosmos --random-sleep -v