summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-03-04 01:09:58 +0100
committerAhmed Abdelhalim <[email protected]>2026-03-04 01:09:58 +0100
commit49e1bd8ee95cb5aef025277dbbf302f72163e844 (patch)
treeaa746346e8be2f6ab2c1a9e1df4029770f904eb0
parentd9e042a218f619e68bbcfb27d679babb15d325dd (diff)
Fix using uv inside mise
-rw-r--r--roles/ansible/tasks/main.yml11
-rw-r--r--roles/yamllint/tasks/main.yml4
2 files changed, 8 insertions, 7 deletions
diff --git a/roles/ansible/tasks/main.yml b/roles/ansible/tasks/main.yml
index e5477416..1b3ab8af 100644
--- a/roles/ansible/tasks/main.yml
+++ b/roles/ansible/tasks/main.yml
@@ -9,7 +9,7 @@
- name: "Check ansible-core version {{ ansible_core_version }}"
ansible.builtin.shell: |
set -euo pipefail
- mise exec uv -- tool list | grep "^ansible-core " | awk '{print $2}' | sed 's/^v//'
+ mise exec uv -- uv tool list | grep "^ansible-core " | awk '{print $2}' | sed 's/^v//'
args:
executable: /bin/bash
register: ansible_core_installed_version
@@ -18,14 +18,14 @@
- name: "Install ansible-core {{ ansible_core_version }}"
ansible.builtin.command:
- cmd: "mise exec uv -- tool install ansible-core=={{ ansible_core_version }} --force"
+ cmd: "mise exec uv -- uv tool install ansible-core=={{ ansible_core_version }} --force"
changed_when: true
when: ansible_core_installed_version.stdout != ansible_core_version
- name: "Check molecule version {{ molecule_version }}"
ansible.builtin.shell: |
set -euo pipefail
- mise exec uv -- tool list | grep "^molecule " | awk '{print $2}' | sed 's/^v//'
+ mise exec uv -- uv tool list | grep "^molecule " | awk '{print $2}' | sed 's/^v//'
args:
executable: /bin/bash
register: molecule_installed_version
@@ -39,6 +39,7 @@
- "exec"
- "uv"
- "--"
+ - "uv"
- "tool"
- "install"
- "molecule=={{ molecule_version }}"
@@ -51,7 +52,7 @@
- name: "Check ansible-lint version {{ ansible_lint_version }}"
ansible.builtin.shell: |
set -euo pipefail
- mise exec uv -- tool list | grep "^ansible-lint " | awk '{print $2}' | sed 's/^v//'
+ mise exec uv -- uv tool list | grep "^ansible-lint " | awk '{print $2}' | sed 's/^v//'
args:
executable: /bin/bash
register: ansible_lint_installed_version
@@ -60,6 +61,6 @@
- name: "Install ansible-lint {{ ansible_lint_version }}"
ansible.builtin.command:
- cmd: "mise exec uv -- tool install ansible-lint=={{ ansible_lint_version }} --force"
+ cmd: "mise exec uv -- uv tool install ansible-lint=={{ ansible_lint_version }} --force"
changed_when: true
when: ansible_lint_installed_version.stdout != ansible_lint_version
diff --git a/roles/yamllint/tasks/main.yml b/roles/yamllint/tasks/main.yml
index 609feed5..f316dfec 100644
--- a/roles/yamllint/tasks/main.yml
+++ b/roles/yamllint/tasks/main.yml
@@ -2,7 +2,7 @@
- name: "Check yamllint version {{ yamllint_version }}"
ansible.builtin.shell: |
set -euo pipefail
- mise exec uv -- tool list | grep "^yamllint " | awk '{print $2}' | sed 's/^v//'
+ mise exec uv -- uv tool list | grep "^yamllint " | awk '{print $2}' | sed 's/^v//'
args:
executable: /bin/bash
register: yamllint_installed_version
@@ -11,6 +11,6 @@
- name: "Install yamllint {{ yamllint_version }}"
ansible.builtin.command:
- cmd: "mise exec uv -- tool install yamllint=={{ yamllint_version }} --force"
+ cmd: "mise exec uv -- uv tool install yamllint=={{ yamllint_version }} --force"
changed_when: true
when: yamllint_installed_version.stdout != yamllint_version