Skip to content

darkwizard242/ansible-role-s3cmd

Repository files navigation

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

Ansible Role: s3cmd

Role to install (by default) s3cmd on Debian/Ubuntu and EL systems. s3cmd is a popular s3 client.

Requirements

None.

Role Variables

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

Variables list:

s3cmd_debian_pre_reqs:
  - python3
  - python3-pip
s3cmd_debian_pre_reqs_desired_state: present
s3cmd_pip_executable: pip3
s3cmd_app_debian_package: s3cmd
s3cmd_desired_state: present

Variables table:

Variable Description
s3cmd_debian_pre_reqs Packages required to install s3cmd on Debian based systems. Using python3 as python2.x is EOL by end of 2020.
s3cmd_debian_pre_reqs_desired_state Desired state for s3cmd pre-requisite apps on Debian systems.
pip_executable The executable to utilize for installing pip package of s3cmd.
s3cmd_app_debian_package Name of s3cmd application package require to be installed i.e. s3cmd on Debian based systems.
s3cmd_desired_state present

Dependencies

None

Example Playbook

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

- hosts: servers
  roles:
    - darkwizard242.s3cmd

For customizing behavior of role (i.e. specifying the desired s3cmd state to uninstall) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.s3cmd
  vars:
    s3cmd_desired_state: absent

For customizing behavior of role (i.e. specifying the desired s3cmd state to install/upgrade to latest version) in ansible playbooks.

- hosts: servers
  roles:
    - darkwizard242.s3cmd
  vars:
    s3cmd_bin_path: latest

License

MIT

Author Information

This role was created by Ali Muhammad.