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