diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-20 17:52:07 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-20 18:24:29 +0200 |
| commit | b2eacfc041b548ec31422e2e902eaa227985c3c3 (patch) | |
| tree | 177369450bd0c1e0143f637d55cf779626d60ecf /roles | |
| parent | 7e97019200df3e40e9cff079baff7d3739c8d2a6 (diff) | |
Fix homebrew shell configuration
Diffstat (limited to 'roles')
| -rw-r--r-- | roles/homebrew/tasks/main.yml | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/roles/homebrew/tasks/main.yml b/roles/homebrew/tasks/main.yml index 81e9dbe3..66632534 100644 --- a/roles/homebrew/tasks/main.yml +++ b/roles/homebrew/tasks/main.yml @@ -33,8 +33,13 @@ NONINTERACTIVE: "1" - name: "Add homebrew to shell profile" - ansible.builtin.lineinfile: + ansible.builtin.blockinfile: path: "{{ ansible_env.HOME }}/.bashrc" - line: 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"' + state: "present" + prepend_newline: true + append_newline: true + marker: "# ==== {mark} ANSIBLE HOMEBREW CONFIG" create: true mode: "0644" + block: | + eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" |
