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