A role that handles the installation and management of the AWS-packaged version of the awscli
tool (version 2).
The unzip
package is required to make use of the unarchive
module, but it is installed by the role before the unarchive task is needed.
There are currently only two variables (located in defaults/main.yml
). Because they are set by default, they should only occasionally need to be modified or overridden. The variables are:
Name | Description |
---|---|
awscli_version |
Rather than installing the most current version of the AWS-managed package, this role requires that a version be specified. |
awscli_clean_previous_versions |
By default, this value is set to false . If it is set to true , the role will delete all previous version of the awscli located in /usr/local/aws-cli/v2/ . It is recommended that this value only be set to true using the --extra-vars argument when necessary. |
This role does not depend on any other roles.
- hosts: all
roles:
- role: OULibraries.awscli
James Mitchell