summaryrefslogtreecommitdiffstats
path: root/roles/python
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-02 23:45:06 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-03 00:22:04 +0200
commitefc6816cb85c3bfb462265dea114e79ec736d2cd (patch)
tree3c51d3c523902f72b8fa27a3753010540fdec37c /roles/python
parent1e8ff97dc4e815d3cdf769089413704891e6b152 (diff)
Revert back to using brew module as it has better idempotency handling
Diffstat (limited to 'roles/python')
-rw-r--r--roles/python/tasks/main.yml11
1 files changed, 5 insertions, 6 deletions
diff --git a/roles/python/tasks/main.yml b/roles/python/tasks/main.yml
index 9248b6bb..45451561 100644
--- a/roles/python/tasks/main.yml
+++ b/roles/python/tasks/main.yml
@@ -1,11 +1,10 @@
---
- name: "Install pyenv and pipx"
- ansible.builtin.command:
- cmd: "/home/linuxbrew/.linuxbrew/bin/brew install {{ item }}"
- creates: "/home/linuxbrew/.linuxbrew/bin/{{ item }}"
- with_items:
- - "pyenv"
- - "pipx"
+ community.general.homebrew:
+ name:
+ - "pyenv"
+ - "pipx"
+ state: "present"
- name: "Add pyenv to shell profile"
ansible.builtin.blockinfile: