fix: use environment in command
This commit is contained in:
parent
fd5dca31a2
commit
b767a7bb71
@ -5,13 +5,11 @@
|
||||
- name: "Get Podman version"
|
||||
become: yes
|
||||
become_user: podman_rootless
|
||||
ansible.builtin.shell: "echo v$(podman --version | cut -d' ' -f 3)"
|
||||
ansible.builtin.shell: " XDG_RUNTIME_DIR=/run/user/2534 echo v$(podman --version | cut -d' ' -f 3)"
|
||||
register: podman_active_version
|
||||
changed_when: false
|
||||
failed_when: false
|
||||
when: podman_version_check|bool
|
||||
environment:
|
||||
XDG_RUNTIME_DIR=/run/user/2534
|
||||
when: podman_version_check|bool
|
||||
|
||||
- name: "test"
|
||||
debug:
|
||||
|
Loading…
Reference in New Issue
Block a user