From a5a8877b58a8ff6cd001c8dea3982b7242665f07 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Mon, 10 Nov 2025 15:25:48 +0100 Subject: [PATCH] fix: import_tasks to make tags work --- playbook.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/playbook.yaml b/playbook.yaml index 21dc564..32be33f 100644 --- a/playbook.yaml +++ b/playbook.yaml @@ -10,14 +10,14 @@ # force update time - name: "force update time using chrony" tags: "chrony" - ansible.builtin.include_tasks: "tasks/chrony.yaml" + ansible.builtin.import_tasks: "tasks/chrony.yaml" # install updates - name: "install updates" tags: "update" - ansible.builtin.include_tasks: "tasks/update.yaml" + ansible.builtin.import_tasks: "tasks/update.yaml" # initiate reboot - name: "initiate reboot" tags: "reboot" - ansible.builtin.include_tasks: "tasks/reboot.yaml" + ansible.builtin.import_tasks: "tasks/reboot.yaml"