summaryrefslogtreecommitdiffstats
path: root/roles/go
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2025-09-02 22:45:38 +0200
committerAhmed Abdelhalim <[email protected]>2025-09-02 23:09:30 +0200
commit6183653179fd4a36a1c7142e8debc9e584481093 (patch)
tree9fff273e850a85775f30c46dc8835e406275ca0b /roles/go
parentd043c2b3358d39ecc9870e0dd8ed7167faeca1c8 (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.yml1
-rw-r--r--roles/go/tasks/main.yml6
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"