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: user:
name: testuser name: testuser
state: absent state: absent
remove: yes
force: yes
- name: Remove testgroup - name: Remove testgroup
group: group:

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

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

Loading…
Cancel
Save