Fix cleaning up user for unarchive tests (#75681)

Become root to clean up user

Clean up users with force and remove enabled

Co-authored-by: Matt Martz <matt@sivel.net>
pull/75690/head
Sloane Hertel 3 years ago committed by GitHub
parent 05464a0ff7
commit 649a5bbda2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -155,6 +155,8 @@
user:
name: testuser
state: absent
remove: yes
force: yes
- name: Remove testgroup
group:

@ -41,6 +41,8 @@
user:
name: testuser
state: absent
remove: yes
force: yes
- name: Remove testgroup
group:

@ -75,7 +75,8 @@
name: unarchivetest1
state: absent
remove: yes
become: no
become: yes
become_user: root
- name: Remove user home directory on macOS
file:

Loading…
Cancel
Save