summaryrefslogtreecommitdiffstats
path: root/roles/ansible
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-02-21 23:14:58 +0100
committerAhmed Abdelhalim <[email protected]>2026-02-21 23:14:58 +0100
commitdae05ed97cf8183bfb8725f9c6c4abee9ac4970d (patch)
tree92eb9f5308a344dca7c02e1070398f80537ed35a /roles/ansible
parent5dcb7b3f99c7f7a9a9b11814334baeef81535d20 (diff)
Fix bash dependencies in shell scripts called
Diffstat (limited to 'roles/ansible')
-rw-r--r--roles/ansible/tasks/main.yml21
1 files changed, 6 insertions, 15 deletions
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