https://github.com/darkwizard242/ansible-role-s3cmd
Ansible role for s3cmd. Available on Ansible Galaxy.
https://github.com/darkwizard242/ansible-role-s3cmd
ansible ansible-galaxy ansible-role aws s3-client s3cmd
Last synced: about 2 months ago
JSON representation
Ansible role for s3cmd. Available on Ansible Galaxy.
- Host: GitHub
- URL: https://github.com/darkwizard242/ansible-role-s3cmd
- Owner: darkwizard242
- License: mit
- Created: 2020-06-14T21:15:03.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2024-07-01T14:57:38.000Z (almost 2 years ago)
- Last Synced: 2025-02-28T20:46:04.123Z (over 1 year ago)
- Topics: ansible, ansible-galaxy, ansible-role, aws, s3-client, s3cmd
- Language: Python
- Homepage: https://galaxy.ansible.com/darkwizard242/s3cmd
- Size: 44.9 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/darkwizard242/ansible-role-s3cmd/actions?query=workflow%3Abuild-and-test) [](https://github.com/darkwizard242/ansible-role-s3cmd/actions?query=workflow%3Arelease)  [](https://sonarcloud.io/dashboard?id=ansible-role-s3cmd) [](https://sonarcloud.io/dashboard?id=ansible-role-s3cmd) [](https://sonarcloud.io/dashboard?id=ansible-role-s3cmd)  
# Ansible Role: s3cmd
Role to install (_by default_) [s3cmd](https://github.com/gos3cmdio/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:
```yaml
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 | Desired state for **s3cmd**.
## Dependencies
None
## Example Playbook
For default behaviour of role (i.e. installation of **s3cmd**) in ansible playbooks.
```yaml
- hosts: servers
roles:
- darkwizard242.s3cmd
```
For customizing behavior of role (i.e. specifying the desired **s3cmd** state to uninstall) in ansible playbooks.
```yaml
- 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.
```yaml
- hosts: servers
roles:
- darkwizard242.s3cmd
vars:
s3cmd_bin_path: latest
```
## License
[MIT](https://github.com/darkwizard242/ansible-role-s3cmd/blob/master/LICENSE)
## Author Information
This role was created by [Ali Muhammad](https://www.alimuhammad.dev/).