mirror of
https://github.com/ansible/ansible.git
synced 2026-08-03 08:03:05 +02:00
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:
co-authored by
Matt Martz
parent
63413dd483
commit
7cbb53fe9a
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user