From 9eb72b6c02e4a2137af5c4ccdde67dfb2e5dcd41 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Fri, 11 Dec 2015 21:43:13 +0200 Subject: [PATCH] Corrected changed_when state for root account lock. --- tasks/lock_root.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/lock_root.yml b/tasks/lock_root.yml index 8bab4fd..9579cca 100644 --- a/tasks/lock_root.yml +++ b/tasks/lock_root.yml @@ -5,7 +5,7 @@ name: root expires: 1.0 register: lock_root - changed_when: not 'no changes' in lock_root.stderr + changed_when: not (lock_root.stderr is defined and 'no changes' in lock_root.stderr) - name: Disable root SSH login lineinfile: -- GitLab