From 4dd46ccc5533f2570c0977a5f3866a12974f2b25 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') 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