An open API service indexing awesome lists of open source software.

https://github.com/akman/ansible-role-ocstore_sync

Sync ocStore application on Linux
https://github.com/akman/ansible-role-ocstore_sync

Last synced: 6 months ago
JSON representation

Sync ocStore application on Linux

Awesome Lists containing this project

README

          

# Ansible Role: ocstore_sync

Sync ocStore on Linux.

## Requirements

None.

## Role Variables

Available variables are listed below, along with default values:

ocstore_sync_dir: "resources/{{ inventory_hostname }}/sync"
ocstore_sync_tasks: []

## Dependencies

None.

## Example Playbook

- hosts: all
roles:
- Akman.ocstore_sync

*Inside `vars/main.yml`*:

ocstore_sync_dir: "resources/{{ inventory_hostname }}/sync"

ocstore_sync_tasks:
- path: "{{ ocstore_shared_dir }}/image/data/avatars/300"
mode: "pull"
options:
- "--delete-before"
- path: "{{ ocstore_shared_dir }}/download"
mode: "push"
options:
- "--delete-after"
- "--exclude=index.html"
- path: "{{ ocstore_shared_dir }}/image"
mode: "push"
options:
- "--delete-after"
- "--exclude=/cache/"
- "--exclude=/no_image.jpg"
- "--exclude=index.html"
- path: "{{ ocstore_shared_dir }}/css"
mode: "push"
options:
- "--delete-after"
- "--exclude=index.html"

## License

MIT / BSD

## Author Information

This role was created in 2017 by Alexander Kapitman