Fix test interactions by cleaning up users with the same uid by using 'force: yes' and 'remove: yes' (#75670)

Co-authored-by: Matt Martz <matt@sivel.net>
This commit is contained in:
Sloane Hertel
2021-09-09 18:32:21 -04:00
committed by GitHub
co-authored by Matt Martz
parent 63413dd483
commit 7cbb53fe9a
3 changed files with 4 additions and 0 deletions
@@ -115,6 +115,7 @@
name: '{{ remote_unprivileged_user }}'
state: absent
remove: yes
force: yes
- name: Remove sudoers.d file
file:
@@ -3,6 +3,7 @@
name: "{{ item }}"
state: absent
remove: yes
force: yes
loop:
- test1
- test_uid
@@ -181,6 +181,8 @@
user:
name: '{{ remote_unprivileged_user }}'
state: absent
force: yes
remove: yes
- name: Delete unprivileged user home and tempdir
file: