From ddf576f3c3f7c1e1a30d2b3341a453f21d0000f5 Mon Sep 17 00:00:00 2001 From: L3D Date: Thu, 29 Dec 2022 18:38:07 +0100 Subject: [PATCH] idempotence improvement --- tasks/obs_user.yml | 1 + tasks/powerplan.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/tasks/obs_user.yml b/tasks/obs_user.yml index d15281e..f15dd8a 100644 --- a/tasks/obs_user.yml +++ b/tasks/obs_user.yml @@ -17,3 +17,4 @@ user_cannot_change_password: true groups: - 'S-1-5-32-545' # Users + register: _user diff --git a/tasks/powerplan.yml b/tasks/powerplan.yml index b42e351..b444ce7 100644 --- a/tasks/powerplan.yml +++ b/tasks/powerplan.yml @@ -21,3 +21,4 @@ become_user: "{{ win_obs_init__user }}" vars: ansible_become_pass: '{{ win_obs_init__password }}' + changed_when: _user.changed