Ansible role for AWS CLI. Available on Ansible Galaxy.
MIT License
Role to install awscli pip package on Debian/Ubuntu systems.
None.
Available variables are listed below (located in defaults/main.yml
):
awscli_debian_pre_reqs:
- python3
- python3-pip
awscli_debian_pre_reqs_desired_state: present
pip_executable: pip3
awscli_app_debian_package: awscli
awscli_desired_state: present
Variable | Description |
---|---|
awscli_debian_pre_reqs | Packages required to install AWS CLI on Debian based systems. Using python3 as python2.x is EOL by end of 2020. |
awscli_debian_pre_reqs_desired_state | Desired state for AWS CLI pre-requisite apps on Debian systems. |
pip_executable | The executable to utilize for installing pip package of awscli . |
awscli_app_debian_package | Name of awscli application package require to be installed i.e. awscli on Debian based systems. |
awscli_desired_state | Desired state for AWS CLI. |
None
For default behaviour of role (i.e. installation of awscli package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.awscli
For customizing behavior of role (i.e. installation of latest awscli package instead of ensure it is installed ) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.awscli
vars:
awscli_desired_state: latest
For customizing behavior of role (i.e. removal of awscli package) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.awscli
vars:
awscli_desired_state: absent
This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who loves to learn and contribute to Open Source community.