From efc6816cb85c3bfb462265dea114e79ec736d2cd Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Tue, 2 Sep 2025 23:45:06 +0200 Subject: Revert back to using brew module as it has better idempotency handling --- roles/python/tasks/main.yml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'roles/python/tasks/main.yml') 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: -- cgit v1.2.3