From 6b390d708262f0fbd0d8aa8aa07cb106a6a921a7 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 5 Sep 2024 01:27:31 -0400 Subject: [PATCH] Fix issue with newhost inverse definition --- roles/base/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml index 282a19a..85f1c60 100644 --- a/roles/base/tasks/main.yml +++ b/roles/base/tasks/main.yml @@ -664,12 +664,12 @@ - name: run update-motd on change command: /usr/local/sbin/update-motd.sh - when: profile_scripts.changed and not newhost + when: profile_scripts.changed and newhost is not defined and not newhost tags: base-shell - name: run update-issue on change command: /usr/local/sbin/update-issue.sh - when: profile_scripts.changed and not newhost + when: profile_scripts.changed and newhost is not defined and not newhost tags: base-shell # htop