fix: Add debug tasks for registries.conf verification
This commit is contained in:
parent
360930920e
commit
0fd124effe
@ -31,3 +31,23 @@
|
||||
group: "{{ ansible_user }}"
|
||||
mode: '0644'
|
||||
become: true
|
||||
|
||||
- name: Verify registries.conf file existence
|
||||
ansible.builtin.stat:
|
||||
path: "{{ ansible_user_dir }}/.config/containers/registries.conf"
|
||||
register: registries_conf_stat
|
||||
|
||||
- name: Display registries.conf stat
|
||||
debug:
|
||||
var: registries_conf_stat
|
||||
|
||||
- name: Read registries.conf content
|
||||
ansible.builtin.slurp:
|
||||
src: "{{ ansible_user_dir }}/.config/containers/registries.conf"
|
||||
register: registries_conf_content
|
||||
when: registries_conf_stat.stat.exists
|
||||
|
||||
- name: Display registries.conf content
|
||||
debug:
|
||||
var: registries_conf_content.content | b64decode
|
||||
when: registries_conf_stat.stat.exists
|
||||
Loading…
x
Reference in New Issue
Block a user