toolbox/playbook.yaml

31 lines
717 B
YAML

---
# execute this role
- name: "use toolbox"
hosts: "all"
become: true
serial: 1
tasks:
# due to semaphore bug we need to do this ourselves
- name: "force-update requirements"
ansible.builtin.command:
cmd: "ansible-galaxy install -f -r roles/requirements.yml"
become: false
delegate_to: "localhost"
changed_when: false
failed_when: false
# install updates
- name: "install updates"
tags:
- "update"
- "never"
ansible.builtin.include_tasks: "tasks/update.yaml"
# initiate reboot
- name: "initiate reboot"
tags:
- "reboot"
- "never"
ansible.builtin.include_tasks: "tasks/reboot.yaml"