Skip to content

darkwizard242/ansible-role-saws

Repository files navigation

build-test release Ansible Role Maintainability Rating Reliability Rating Security Rating GitHub tag (latest SemVer) GitHub repo size

Ansible Role: saws

Role to install saws pip package on Debian/Ubuntu systems. saws is a supercharged AWS CLI.

Requirements

None.

Role Variables

Available variables are listed below (located in defaults/main.yml):

Variables List:

saws_debian_pre_reqs:
  - python3
  - python3-pip
saws_debian_pre_reqs_desired_state: present
saws_pip_executable: pip3
saws_app_debian_package: saws
saws_desired_state: present

Variables table:

Variable Description
saws_debian_pre_reqs Packages required to install saws on Debian based systems. Using python3 as python2.x is EOL by end of 2020.
saws_debian_pre_reqs_desired_state Desired state for saws pre-requisite apps on Debian systems.
saws_pip_executable The executable to utilize for installing pip package of saws.
saws_app_debian_package Name of saws application package require to be installed i.e. saws on Debian based systems.
saws_desired_state Desired state for saws.

Dependencies

None

Example Playbook

For default behaviour of role (i.e. installation of saws package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.saws

For customizing behavior of role (i.e. installation of latest saws package instead of ensure it is installed ) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.saws
  vars:
    saws_desired_state: latest

For customizing behavior of role (i.e. removal of saws package) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.saws
  vars:
    saws_desired_state: absent

License

MIT

Author Information

This role was created by Ali Muhammad, a DevOps/CloudOps Engineer who loves to learn and contribute to Open Source community.