mirror of
https://github.com/ansible-collections/community.docker.git
synced 2026-07-29 11:55:04 +00:00
Use ansible_facts.xxx instead of ansible_xxx. (#1237)
This commit is contained in:
@@ -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:
|
||||
@@ -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 %}"
|
||||
|
||||
Reference in New Issue
Block a user