From bffb91cd442b42a30ce47c8bfcefbaae029331fc Mon Sep 17 00:00:00 2001 From: Ahmed AbdelHalim Date: Tue, 2 Sep 2025 22:45:38 +0200 Subject: Add bash as a role and use it in role dependencies when bash is needed --- roles/go/meta/main.yml | 1 + roles/go/tasks/main.yml | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) (limited to 'roles/go') 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" -- cgit v1.2.3