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
|
# state: present
|
||||||
# @end
|
# @end
|
||||||
podman_registries: []
|
podman_registries: []
|
||||||
|
|
||||||
|
podman_socket_enabled: False
|
||||||
|
@ -56,3 +56,11 @@
|
|||||||
loop: "{{ podman_registries }}"
|
loop: "{{ podman_registries }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
label: "{{ item.url }}"
|
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