From dae05ed97cf8183bfb8725f9c6c4abee9ac4970d Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 21 Feb 2026 23:14:58 +0100 Subject: Fix bash dependencies in shell scripts called --- roles/ansible/tasks/main.yml | 21 ++++++--------------- 1 file changed, 6 insertions(+), 15 deletions(-) (limited to 'roles/ansible') diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml index abd4fbb4..b5ac2066 100644 --- a/roles/ansible/tasks/main.yml +++ b/roles/ansible/tasks/main.yml @@ -17,11 +17,8 @@ failed_when: false - name: "Install ansible core version {{ ansible_core_version }}" - ansible.builtin.shell: | - set -euo pipefail - uv tool install ansible-core=={{ ansible_core_version }} --force - args: - executable: /bin/bash + ansible.builtin.command: + cmd: "uv tool install ansible-core=={{ ansible_core_version }} --force" changed_when: true when: ansible_core_installed_version.stdout != ansible_core_version @@ -36,11 +33,8 @@ failed_when: false - name: "Install molecule version {{ molecule_version }}" - ansible.builtin.shell: | - set -euo pipefail - uv tool install molecule=={{ molecule_version }} --with 'molecule-plugins[docker,podman]' --force - args: - executable: /bin/bash + ansible.builtin.command: + cmd: "uv tool install molecule=={{ molecule_version }} --with 'molecule-plugins[docker,podman]' --force" changed_when: true when: molecule_installed_version.stdout != molecule_version @@ -55,10 +49,7 @@ failed_when: false - name: "Install ansible lint version {{ ansible_lint_version }}" - ansible.builtin.shell: | - set -euo pipefail - uv tool install ansible-lint=={{ ansible_lint_version }} --force - args: - executable: /bin/bash + ansible.builtin.command: + cmd: "uv tool install ansible-lint=={{ ansible_lint_version }} --force" changed_when: true when: ansible_lint_installed_version.stdout != ansible_lint_version -- cgit v1.2.3