mirror of
https://github.com/ansible-collections/ansible.posix.git
synced 2026-01-12 15:45:20 +01:00
Compare commits
2 commits
35c3727ddd
...
2cbd5b93fb
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2cbd5b93fb | ||
|
|
624c15166d |
1 changed files with 1 additions and 12 deletions
|
|
@ -7,16 +7,10 @@
|
||||||
state: touch
|
state: touch
|
||||||
path: "{{ output_dir | expanduser }}/file_permissions"
|
path: "{{ output_dir | expanduser }}/file_permissions"
|
||||||
owner: root
|
owner: root
|
||||||
|
group: root
|
||||||
mode: '0000'
|
mode: '0000'
|
||||||
|
|
||||||
- name: Create unprivileged user
|
|
||||||
ansible.builtin.user:
|
|
||||||
name: nopriv
|
|
||||||
create_home: true
|
|
||||||
|
|
||||||
- name: Try to delete a key from an unreadable file
|
- name: Try to delete a key from an unreadable file
|
||||||
become: true
|
|
||||||
become_user: nopriv
|
|
||||||
ansible.posix.authorized_key:
|
ansible.posix.authorized_key:
|
||||||
user: root
|
user: root
|
||||||
key: "{{ dss_key_basic }}"
|
key: "{{ dss_key_basic }}"
|
||||||
|
|
@ -34,8 +28,3 @@
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
state: absent
|
state: absent
|
||||||
path: "{{ output_dir | expanduser }}/file_permissions"
|
path: "{{ output_dir | expanduser }}/file_permissions"
|
||||||
|
|
||||||
- name: Remove the user
|
|
||||||
ansible.builtin.user:
|
|
||||||
name: nopriv
|
|
||||||
state: absent
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue