update ansible collections sops, docker and debops
This commit is contained in:
parent
f1135b818f
commit
e31ee5e39c
1 changed files with 27667 additions and 19786 deletions
|
|
@ -23,7 +23,7 @@
|
|||
ansible.builtin.command: id -u
|
||||
register: podman_user_id
|
||||
|
||||
- when: not podman_setup_marker.stat.exists and not ansible_module_running_in_container
|
||||
- when: not podman_setup_marker.stat.exists and not ansible_facts.module_running_in_container
|
||||
block:
|
||||
- name: Print information
|
||||
ansible.builtin.debug:
|
||||
|
|
@ -57,7 +57,7 @@
|
|||
ansible.builtin.systemd_service:
|
||||
name: "{{ podman_socket_service }}"
|
||||
state: started
|
||||
scope: "{{ 'global' if podman_user_id.stdout == '0' and ansible_facts.os_family == 'RedHat' and (ansible_facts.distribution_major_version | int < 10) else 'user' }}"
|
||||
scope: "{{ 'global' if podman_user_id.stdout == '0' and ansible_facts.os_family == 'RedHat' and (ansible_facts.distribution_version is version('9.8', '<')) else 'user' }}"
|
||||
environment:
|
||||
XDG_RUNTIME_DIR: "{{ '/run' if podman_user_id.stdout == '0' else ('/run/user/' ~ podman_user_id.stdout) }}"
|
||||
|
||||
|
|
@ -67,13 +67,13 @@
|
|||
state: touch
|
||||
when: podman_skip_cleanup
|
||||
|
||||
- when: not has_podman or ansible_module_running_in_container
|
||||
- when: not has_podman or ansible_facts.module_running_in_container
|
||||
block:
|
||||
- ansible.builtin.set_fact:
|
||||
podman_cli_version: "0.0"
|
||||
podman_socket: "not available"
|
||||
|
||||
- when: has_podman and not ansible_module_running_in_container
|
||||
- when: has_podman and not ansible_facts.module_running_in_container
|
||||
block:
|
||||
- name: Check Podman CLI version
|
||||
ansible.builtin.command: "podman version -f {% raw %}'{{.Client.Version}}'{% endraw %}"
|
||||
|
|
|
|||
Loading…
Reference in a new issue