lint: ansible-lint suggested updates
Some checks failed
Ansible Lint Check / lint (push) Has been cancelled

This commit is contained in:
Iain Learmonth 2025-11-01 15:07:36 +00:00
parent 2ba6c6691b
commit 58fd3ec476
20 changed files with 139 additions and 56 deletions

View file

@ -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