diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-02 23:45:06 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-03 00:22:04 +0200 |
| commit | 4dd46ccc5533f2570c0977a5f3866a12974f2b25 (patch) | |
| tree | 3c51d3c523902f72b8fa27a3753010540fdec37c /roles/python/tasks | |
| parent | 5b73ee3269acc3cc39715dfcabda4d3df1b14212 (diff) | |
Revert back to using brew module as it has better idempotency handling
Diffstat (limited to 'roles/python/tasks')
| -rw-r--r-- | roles/python/tasks/main.yml | 11 |
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: |
