Skip to content

Commit

Permalink
aws: Adding awscli install.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Dec 19, 2024
1 parent f4d0b0e commit 35f0988
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/aws/tasks/MacOSX.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: "AWS | Install AWS CLI"
community.general.homebrew:
name: awscli
state: present
update_homebrew: true
9 changes: 9 additions & 0 deletions roles/aws/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
- name: "{{ role_name }} | Checking for Distribution Config: {{ ansible_distribution }}"
ansible.builtin.stat:
path: "{{ role_path }}/tasks/{{ ansible_distribution }}.yml"
register: distribution_config

- name: "{{ role_name }} | Run Tasks: {{ ansible_distribution }}"
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
when: distribution_config.stat.exists

0 comments on commit 35f0988

Please sign in to comment.