From ba7fef8852e6d7f4cd8ff8994e6180f9799f0ad5 Mon Sep 17 00:00:00 2001 From: Jeffrey Serio Date: Wed, 26 Feb 2025 21:35:14 -0600 Subject: [PATCH] Fix conditional and debug msg --- freebsd-update.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/freebsd-update.yml b/freebsd-update.yml index a3bf3f7..e3c283c 100644 --- a/freebsd-update.yml +++ b/freebsd-update.yml @@ -39,13 +39,9 @@ - name: Upgrade the jails ansible.builtin.command: "freebsd-update install -j {{ item }}" - register: upgraded_jails - changed_when: upgraded_jails.item.rc == 0 with_items: "{{ jails }}" - name: Reboot of jail may be necessary ansible.builtin.debug: - msg: "A system reboot may be necessary for this jail." - when: - - upgraded_jails.item.rc == 0 + msg: "A reboot of {{ item }} jail may be necessary." with_items: "{{ jails }}"