From 7e3d87483cd1310d574fb842b3ca8ea16b980883 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 23 Oct 2025 10:30:42 +0200 Subject: [PATCH] feat: finalize tag logic --- tasks/main.yaml | 8 ++++++-- tasks/reboot.yaml | 4 +++- tasks/update.yaml | 4 +++- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/tasks/main.yaml b/tasks/main.yaml index 8584627..7bd836d 100644 --- a/tasks/main.yaml +++ b/tasks/main.yaml @@ -2,10 +2,14 @@ # install updates - name: "install updates" - tags: "update" + tags: + - "update" + - "never" ansible.builtin.include_tasks: "update.yaml" # initiate reboot - name: "initiate reboot" - tags: "reboot" + tags: + - "reboot" + - "never" ansible.builtin.include_tasks: "reboot.yaml" diff --git a/tasks/reboot.yaml b/tasks/reboot.yaml index 8f70dd5..ab8f58e 100644 --- a/tasks/reboot.yaml +++ b/tasks/reboot.yaml @@ -2,7 +2,9 @@ # reboot the system - name: "reboot the system" - tags: "reboot" + tags: + - "update" + - "never" ansible.builtin.reboot: msg: "Reboot initiated by Ansible" reboot_timeout: 120 diff --git a/tasks/update.yaml b/tasks/update.yaml index c7df97c..ebd912e 100644 --- a/tasks/update.yaml +++ b/tasks/update.yaml @@ -2,7 +2,9 @@ # install updates - name: "install updates" - tags: "update" + tags: + - "update" + - "never" block: # install updates - debian