From cf8f30da8b198f4920934a0cf6bf84bd0dbbf63b Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Sat, 20 Sep 2025 21:13:53 +0200 Subject: Fix ansible install on ubuntu when there is another version installed --- roles/ansible/tasks/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml index 3923fc1a..fa1de1b7 100644 --- a/roles/ansible/tasks/main.yml +++ b/roles/ansible/tasks/main.yml @@ -21,7 +21,7 @@ - name: "Install ansible core version {{ ansible_core_version }}" ansible.builtin.shell: | set -euo pipefail - uv tool install ansible-core=={{ ansible_core_version }} + uv tool install ansible-core=={{ ansible_core_version }} --force args: executable: /bin/bash environment: @@ -44,7 +44,7 @@ - name: "Install molecule version {{ molecule_version }}" ansible.builtin.shell: | set -euo pipefail - uv tool install molecule=={{ molecule_version }} --with 'molecule-plugins[docker,podman]' + uv tool install molecule=={{ molecule_version }} --with 'molecule-plugins[docker,podman]' --force args: executable: /bin/bash environment: -- cgit v1.2.3