-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1561 from guardian/aa/simplify-aws-tools
feat(aws-tools)!: Remove support for RedHat
- Loading branch information
Showing
3 changed files
with
6 additions
and
21 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
--- | ||
- name: See what Ubuntu version we're running | ||
set_fact: | ||
set_fact: | ||
post_focal: "{{ 'post-focal' if ( ansible_distribution_major_version|int >= 20 ) else 'older' }}" | ||
|
||
- name: Install pip and the latest AWS CLI | ||
include: "{{ item }}" | ||
with_first_found: | ||
- "install-pip-aws-cli-{{ ansible_os_family }}.yml" | ||
- name: Install pip3 | ||
apt: name=python3-pip state=present | ||
|
||
- name: Install latest AWS CLI | ||
command: pip3 install awscli | ||
|
||
- name: Install cloudformation tools | ||
include: "{{ item }}" | ||
with_first_found: | ||
- "install-cfn-tools-{{ ansible_distribution }}-{{ post_focal }}.yml" | ||
- "install-cfn-tools-{{ ansible_os_family }}.yml" | ||
- "install-cfn-tools.yml" | ||
|