awsvault
Ansible Role: aws-vault
Role to install (by default) aws-vault on Debian/Ubuntu and EL systems.
Requirements
None.
Role Variables
Available variables are listed below (located in defaults/main.yml
):
Variables list:
awsvault_app: aws-vault
awsvault_version: 7.2.0
awsvault_os: linux
awsvault_arch: amd64
awsvault_dl_url: https://github.com/99designs/{{ awsvault_app }}/releases/download/v{{ awsvault_version }}/{{ awsvault_app }}-{{ awsvault_arch }}-{{ awsvault_arch }}
awsvault_bin_path: /usr/local/bin
awsvault_file_owner: root
awsvault_file_group: root
awsvault_file_mode: '0755'
Variables table:
Variable | Description |
---|---|
awsvault_app | Defines the app to install i.e. aws-vault |
awsvault_version | Defined to dynamically fetch the desired version to install. Defaults to: 7.2.0 |
awsvault_os | Defines os type. Used for obtaining the correct type of binaries based on OS type. Defaults to: linux |
awsvault_arch | Defines os architecture. Used to set the correct type of binaries based on OS System Architecture. Defaults to: amd64 |
awsvault_dl_url | Defines URL to download the aws-vault binary from. |
awsvault_bin_path | Defined to dynamically set the appropriate path to store awsvault binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin |
awsvault_file_owner | Owner for the binary file of aws-vault. |
awsvault_file_group | Group for the binary file of aws-vault. |
awsvault_file_mode | Mode for the binary file of aws-vault. |
Dependencies
None
Example Playbook
For default behaviour of role (i.e. installation of awsvault) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.awsvault
For customizing behavior of role (i.e. specifying the desired awsvault version) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.awsvault
vars:
awsvault_version: 5.4.0
For customizing behavior of role (i.e. placing binary of awsvault package in different location) in ansible playbooks.
- hosts: servers
roles:
- darkwizard242.awsvault
vars:
awsvault_bin_path: /bin/
License
Author Information
This role was created by Ali Muhammad.
About
Installs/Uninstalls 'aws-vault' for managing aws credentials and sessions.
Install
ansible-galaxy install darkwizard242/ansible-role-awsvault
License
mit
Downloads
4229
Owner
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!