Aplyca.SyncS3Content

Ansible Role Sync From and To S3

An Ansible role that sync app content from and to S3 on Debian/Ubuntu.

Build Status Circle CI

Requirements

Use hash behavior for variables in ansible.cfg See example: https://github.com/Aplyca/ansible-role-syncs3content/blob/master/tests/ansible.cfg See official docs: http://docs.ansible.com/intro_configuration.html#hash-behaviour

Installation

Using ansible galaxy:

ansible-galaxy install Aplyca.SyncS3Content

You can add this role as a dependency for other roles, add the role to the meta/main.yml file of your own role:

dependencies:
  - { role: Aplyca.SyncS3Content }

You can prompt for the action to perform in the playbook, like this:

---
- hosts: sync.server.com
  gather_facts: no
  vars_prompt:
    - name: "action"
      prompt: "What action you want to perform [tos3/froms3]?"
      private: no
      default: False
  roles:
    - { role: Aplyca.SyncS3Content, tags: ["syncs3content"] }

##Role Variables

See default variables: https://github.com/Aplyca/ansible-role-syncs3content/blob/master/defaults/main.yml

Dependencies

None

Testing

Vagrant

tests/vagrant.sh

Docker

tests/docker.sh

License

MIT / BSD

Author Information

Mauricio Sánchez from Aplyca SAS (http://www.aplyca.com)

About

Sync From and To AWS S3

Install
ansible-galaxy install Aplyca.SyncS3Content
GitHub repository
License
mit
Downloads
5.7k
Owner
Creating Solutions for the Modern Web