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>
pull/75673/head
Sloane Hertel 3 years ago committed by GitHub
parent 63413dd483
commit 7cbb53fe9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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:

Loading…
Cancel
Save