summaryrefslogtreecommitdiffstats
path: root/roles/ansible/tasks
diff options
context:
space:
mode:
Diffstat (limited to 'roles/ansible/tasks')
-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