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
- Host: GitHub
- URL: https://github.com/akman/ansible-role-ocstore_sync
- Owner: Akman
- License: mit
- Created: 2017-08-29T16:24:35.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-16T12:42:34.000Z (almost 8 years ago)
- Last Synced: 2025-02-08T15:32:23.972Z (over 1 year ago)
- Homepage:
- Size: 11.7 KB
- Stars: 0
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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