feat: move tags around

This commit is contained in:
Simon Cornet 2025-10-23 10:26:28 +02:00
commit 4edcb29499
3 changed files with 53 additions and 49 deletions

View file

@ -2,10 +2,8 @@
# install updates
- name: "install updates"
tags: "update"
ansible.builtin.include_tasks: "update.yaml"
# initiate reboot
- name: "initiate rboot"
tags: "reboot"
- name: "initiate reboot"
ansible.builtin.include_tasks: "reboot.yaml"

View file

@ -2,6 +2,7 @@
# reboot the system
- name: "reboot the system"
tags: "reboot"
ansible.builtin.reboot:
msg: "Reboot initiated by Ansible"
reboot_timeout: 120

View file

@ -1,5 +1,10 @@
---
# install updates
- name: "install updates"
tags: "update"
block:
# install updates - debian
- name: "install updates - debian"
when: 'ansible_os_family == "Debian"'