lint: ansible-lint suggested updates
This commit is contained in:
parent
2ba6c6691b
commit
1d5d39d1c2
20 changed files with 140 additions and 56 deletions
|
|
@ -15,8 +15,8 @@
|
|||
path: /etc/subuid
|
||||
regexp: '^{{ _podman_host_rootless_user }}:.*$'
|
||||
state: absent
|
||||
register: uid_line_found
|
||||
check_mode: yes
|
||||
register: _podman_host_uid_line_found
|
||||
check_mode: true
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
|
|
@ -25,17 +25,17 @@
|
|||
path: /etc/subgid
|
||||
regexp: '^{{ _podman_host_rootless_user_group.ansible_facts.getent_group | first }}:.*$'
|
||||
state: absent
|
||||
register: gid_line_found
|
||||
check_mode: yes
|
||||
register: _podman_host_gid_line_found
|
||||
check_mode: true
|
||||
failed_when: false
|
||||
changed_when: false
|
||||
|
||||
- name: Podman Host | AUDIT | Assert that user is in subuid file exactly once
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- uid_line_found.found == 1
|
||||
- _podman_host_uid_line_found.found == 1
|
||||
|
||||
- name: Podman Host | AUDIT | Assert that group is in subgid file exactly once
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- gid_line_found.found == 1
|
||||
- _podman_host_gid_line_found.found == 1
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue