darkwizard242.s3cmd
Ansible Role: s3cmd
This role installs s3cmd on Debian/Ubuntu and EL systems by default. s3cmd is a widely used tool for S3 storage management.
Requirements
No special requirements.
Role Variables
The variables you can use are listed below (defined in defaults/main.yml
):
List of Variables:
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
Table of Variables:
Variable | Description |
---|---|
s3cmd_debian_pre_reqs | Packages needed to install s3cmd on Debian-based systems. We use python3 because python2.x is no longer supported since 2020. |
s3cmd_debian_pre_reqs_desired_state | The desired state for s3cmd required packages on Debian systems. |
pip_executable | The command used to install the pip package for s3cmd . |
s3cmd_app_debian_package | The name of the s3cmd application package required for installation on Debian systems. |
s3cmd_desired_state | present |
Dependencies
No dependencies.
Example Playbook
For the default function of the role (to install s3cmd) in Ansible playbooks, use:
- hosts: servers
roles:
- darkwizard242.s3cmd
To customize the role (for example, if you want to uninstall s3cmd), you can do this:
- hosts: servers
roles:
- darkwizard242.s3cmd
vars:
s3cmd_desired_state: absent
To set the role to install or upgrade s3cmd to the latest version, use:
- hosts: servers
roles:
- darkwizard242.s3cmd
vars:
s3cmd_bin_path: latest
License
Author Information
This role was created by Ali Muhammad.
Informazioni sul progetto
Installs/Uninstalls 's3cmd', it is a popular commandline client for s3.
Installa
ansible-galaxy install darkwizard242.s3cmd
Licenza
mit
Download
5.2k
Proprietario
Senior DevOps/CloudOps Engineer.
Dedicated to Automating everything I come across.
Love to work on and learn new technologies/tools everyday!