idempotence improvement

This commit is contained in:
L3D 2022-12-29 18:38:07 +01:00
parent 6249b9b886
commit ddf576f3c3
Signed by: l3d
GPG key ID: CD08445BFF4313D1
2 changed files with 2 additions and 0 deletions

View file

@ -17,3 +17,4 @@
user_cannot_change_password: true user_cannot_change_password: true
groups: groups:
- 'S-1-5-32-545' # Users - 'S-1-5-32-545' # Users
register: _user

View file

@ -21,3 +21,4 @@
become_user: "{{ win_obs_init__user }}" become_user: "{{ win_obs_init__user }}"
vars: vars:
ansible_become_pass: '{{ win_obs_init__password }}' ansible_become_pass: '{{ win_obs_init__password }}'
changed_when: _user.changed