feat: move tag logic to playbook file

This commit is contained in:
Simon Cornet 2025-11-01 21:13:35 +01:00
commit 982497467a
4 changed files with 13 additions and 25 deletions

View file

@ -16,7 +16,16 @@
changed_when: false
failed_when: false
# execute the role
- name: "execute role: toolbox"
ansible.builtin.include_role:
name: "toolbox"
# 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"