dzangolab.awscli2
ansible-awscli
This role sets up AWS CLI version 2.
Role Variables
Here are the variables needed to use this role.
- AWS CLI profiles with credentials
AWS CLI profiles can be defined like this:
awscli_users:
# To add the user 'johnd'
- user: johnd
state: present
profiles:
- name: default
aws_access_key_id: XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
output: json
region: ap-northeast-1
# To remove the user 'johnd'
- user: johnd
state: absent
Example Playbook
- name: Install aws-cli
hosts: all
roles:
- name: Install aws-cli
role: dzangolab.awscli2
tags:
- awscli
vars:
awscli_users:
# To add the user 'johnd'
- user: johnd
state: present
profiles:
- name: default
aws_access_key_id: XXXXXXXXXXXXXXXXXXXX
aws_secret_access_key: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
output: json
region: ap-northeast-1
# To remove the user 'johnd'
- user: johnd
state: absent
License
MIT
Installa
ansible-galaxy install dzangolab.awscli2
Licenza
mit
Download
555
Proprietario
tech accelerator