diff options
| author | Ahmed AbdelHalim <[email protected]> | 2025-09-02 22:45:38 +0200 |
|---|---|---|
| committer | Ahmed AbdelHalim <[email protected]> | 2025-09-02 23:09:30 +0200 |
| commit | bffb91cd442b42a30ce47c8bfcefbaae029331fc (patch) | |
| tree | 9fff273e850a85775f30c46dc8835e406275ca0b /roles/go | |
| parent | 95a925f7b32f05487848258de56a7acb1ee99705 (diff) | |
Add bash as a role and use it in role dependencies when bash is needed
Diffstat (limited to 'roles/go')
| -rw-r--r-- | roles/go/meta/main.yml | 1 | ||||
| -rw-r--r-- | roles/go/tasks/main.yml | 6 |
2 files changed, 1 insertions, 6 deletions
diff --git a/roles/go/meta/main.yml b/roles/go/meta/main.yml index 17484257..28741fea 100644 --- a/roles/go/meta/main.yml +++ b/roles/go/meta/main.yml @@ -1,6 +1,7 @@ --- dependencies: - role: "homebrew" + - role: "bash" galaxy_info: author: "a14m" description: "Install Go (versions) on Linux distributions" diff --git a/roles/go/tasks/main.yml b/roles/go/tasks/main.yml index 73f065f3..99b00be1 100644 --- a/roles/go/tasks/main.yml +++ b/roles/go/tasks/main.yml @@ -1,10 +1,4 @@ --- -- name: "Ensure bash is installed" - become: true - ansible.builtin.package: - name: "bash" - state: "present" - - name: "Add Go to shell profile" ansible.builtin.blockinfile: path: "{{ ansible_env.HOME }}/.bashrc" |
