s3cmd role
Install and configure s3cmd.
Usage
Configure the role.
vars.yml
s3cmd_host_base: sos-ch-dk-2.exo.io
s3cmd_host_bucket: kronos.sos-ch-dk-2.exo.io
s3cmd_access_key: EXO2677bc43796a0cff80b29b79
s3cmd_secret_key: "{{ vault_s3cmd_secret_key }}"
s3cmd_backup_set:
- id: "disk2"
src: /mnt/sdb/
target: kronos
hour: "5"
- id: "disk"
src: /mnt/sda/
target: kronos
hour: "3"
disabled: true # default: false
state: absent # default: present
And include it in your playbook.
- hosts: s3cmd
roles:
- role: s3cmd