Use ansible_facts.xxx instead of ansible_xxx. (#1237)

This commit is contained in:
Felix Fontein
2026-02-07 16:00:22 +01:00
committed by GitHub
parent 14be59e7e4
commit 85a3c811cb
65 changed files with 95 additions and 95 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:
@@ -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 %}"