Skip to content

Latest commit

 

History

History
101 lines (78 loc) · 4.86 KB

README.md

File metadata and controls

101 lines (78 loc) · 4.86 KB

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

Ansible Role: awsnuke

Role to install (by default) aws-nuke on Debian/Ubuntu and EL systems.

Requirements

None.

Role Variables

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

Variables list:

awsnuke_app: aws-nuke
awsnuke_version: 2.25.0
awsnuke_os: linux
awsnuke_arch: amd64
awsnuke_dl_url: https://github.com/rebuy-de/{{ awsnuke_app }}/releases/download/v{{ awsnuke_version }}/{{ awsnuke_app }}-v{{ awsnuke_version }}-{{ awsnuke_os }}-{{ awsnuke_arch }}.tar.gz
awsnuke_app_owner: root
awsnuke_app_group: root
awsnuke_bin_path: /usr/local/bin
awsnuke_file_mode: '0755'
awsnuke_config_dir: "/etc/{{ awsnuke_app }}"
awsnuke_config_dir_mode: '0744'
awsnuke_config_dir_owner: root
awsnuke_config_dir_group: root
awsnuke_template_source: aws-nuke-config.yml.j2
awsnuke_template_dest: aws-nuke-config.yml
awsnuke_template_dest_mode: '0744'
awsnuke_template_dest_owner: root
awsnuke_template_dest_group: root

Variables table:

Variable Description
awsnuke_app Defines the app to install i.e. aws-nuke
awsnuke_version Defined to dynamically fetch the desired version to install. Defaults to: 2.25.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
awsnuke_dl_url Defines URL to download the awsnuke binary from.
awsnuke_config_dir_owner Owner of aws-nuke binary file.
awsnuke_config_dir_group Group of aws-nuke binary file.
awsnuke_bin_path Defined to dynamically set the appropriate path to store awsnuke binary into. Defaults to (as generally available on any user's PATH): /usr/local/bin
awsnuke_file_mode Mode for the binary file of aws-nuke.
awsnuke_config_dir Defined to create directory to store aws-nuke config file in.
awsnuke_config_dir_mode Permissions for aws-nuke config directory.
awsnuke_config_dir_owner Owner of aws-nuke config directory.
awsnuke_config_dir_group Group of aws-nuke config directory.
awsnuke_template_source Source config template file to utilize.
awsnuke_template_dest Filename as to be placed in the configuration directory as for aws-nuke.
awsnuke_template_dest_mode Permission of aws-nuke configuration file.
awsnuke_template_dest_owner Owner of aws-nuke configuration file.
awsnuke_template_dest_group Group of aws-nuke configuration file.

Dependencies

None

Example Playbook

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

- hosts: servers
  roles:
    - darkwizard242.awsnuke

For customizing behavior of role (i.e. specifying the desired awsnuke version) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.awsnuke
  vars:
    awsnuke_version: 2.13.0

For customizing behavior of role (i.e. placing binary of awsnuke package in different location) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.awsnuke
  vars:
    awsnuke_bin_path: /bin/

License

MIT

Author Information

This role was created by Ali Muhammad.