feat: add option to enable podman socket
This commit is contained in:
parent
bce4cbbf1e
commit
1b78e3e723
@ -20,3 +20,5 @@ podman_nsremap_range_length: 65536
|
||||
# state: present
|
||||
# @end
|
||||
podman_registries: []
|
||||
|
||||
podman_socket_enabled: False
|
||||
|
@ -56,3 +56,11 @@
|
||||
loop: "{{ podman_registries }}"
|
||||
loop_control:
|
||||
label: "{{ item.url }}"
|
||||
|
||||
- name: Enable podman socket
|
||||
ansible.builtin.service:
|
||||
name: podman.socket
|
||||
daemon_reload: True
|
||||
enabled: "{{ podman_socket_enabled | bool }}"
|
||||
masked: "{{ not podman_socket_enabled | bool }}"
|
||||
state: "{{ podman_socket_enabled | bool | ternary('started', 'stopped', 'started') }}"
|
||||
|
Loading…
Reference in New Issue
Block a user