File tree Expand file tree Collapse file tree 3 files changed +28
-0
lines changed
roles/check_subuid_subgid/tasks Expand file tree Collapse file tree 3 files changed +28
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ - name : Run preflight checks
3+ hosts : quadlet
4+ gather_facts : true
5+ roles :
6+ - check_subuid_subgid
Original file line number Diff line number Diff line change 1+ ---
2+ help : |
3+ Run preflight checks before installing Foreman
Original file line number Diff line number Diff line change 1+ ---
2+ - name : Check /etc/subuid for current user
3+ ansible.builtin.command : grep "^{{ ansible_user_id }}:" /etc/subuid
4+ register : check_subuid_subgid_subuid
5+ ignore_errors : true
6+ changed_when : false
7+
8+ - name : Check /etc/subgid for current user
9+ ansible.builtin.command : grep "^{{ ansible_user_id }}:" /etc/subgid
10+ register : check_subuid_subgid_subgid
11+ ignore_errors : true
12+ changed_when : false
13+
14+ - name : Assert /etc/subuid and /etc/subgid have entries for {{ ansible_user_id }}
15+ ansible.builtin.assert :
16+ that :
17+ - check_subuid_subgid_subuid is success
18+ - check_subuid_subgid_subgid is success
19+ fail_msg : " Entries for user {{ ansible_user_id }} are missing in /etc/subuid or /etc/subgid"
You can’t perform that action at this time.
0 commit comments