ypid.synchronize

synchronize

Travis CI Ansible Galaxy Platforms GitHub Tags GitHub Stars

Simple role to synchronize files/directories from the Ansible controller to target systems.

This role was written to be able to specify directories to synchronize via inventory variables. It is based on Ansible’s synchronize module. If the copy module seems more suitable checkout the role ypid.copy.

Features

  • Ensures that the target parent directory exists.

Installation

This role requires at least Ansible v1.8.4. To install it, run:

ansible-galaxy install ypid.synchronize

To install via git, run either:

git clone https://github.com/ypid/ansible-synchronize.git ypid.synchronize
git submodule add https://github.com/ypid/ansible-synchronize.git ypid.synchronize

Role variables

List of default variables available in the inventory:

---

## Checkout the documentation for the synchronize module.

# synchronize_list:
#   - src: '/etc/issue'
#     dest: '/var/backups/'
#     delete: yes
#   - src: '/etc/cron.d'
#     dest: '/var/backups/'
#     recursive: yes
#     delete: yes

## "Global" files/directories to synchronize
synchronize_list: []

## "Host group" files/directories to synchronize
synchronize_group_list: []

## "Host" files/directories to synchronize
synchronize_host_list: []

List of internal variables used by the role:

synchronize_list_combined

Authors and license

synchronize role was written by:

License: AGPLv3


README generated by Ansigenome.

About

Simple role to synchronize files/directories from the Ansible controller to target systems.

Install
ansible-galaxy install ypid.synchronize
GitHub repository
License
agpl-3.0
Downloads
89
Owner
Working on Free Software as in Freedom. EDE1 371D 1B87 D28D A5E8 0515 86FD 980B BF1A 40F8