Use correct Python executable.

This commit is contained in:
Felix Fontein 2025-09-14 22:13:57 +02:00
parent 0f4153bacf
commit 3fae4801d8

View File

@ -4,14 +4,14 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
- block: - block:
- shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | python -m json.tool" - shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | {{ ansible_python_interpreter }} -m json.tool"
- name: Make sure we're not already using Docker swarm - name: Make sure we're not already using Docker swarm
docker_swarm: docker_swarm:
state: absent state: absent
force: true force: true
- shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | python -m json.tool" - shell: "docker info --format '{% raw %}{{json .}}{% endraw %}' | {{ ansible_python_interpreter }} -m json.tool"
- name: Create a Swarm cluster - name: Create a Swarm cluster
docker_swarm: docker_swarm: