copy

copy

Travis CI Ansible Galaxy Platforms GitHub Tags GitHub Stars

Warning, this is a deprecated role

It has been superseded by debops.resources.


Simple role to copy files from the Ansible controller to target systems.

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

Features

  • Ensures that the target parent directory exists.
  • Allows to delete files defined as state: 'absent'.

Installation

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

ansible-galaxy install ypid.copy

To install via git, run either:

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

Role variables

List of default variables available in the inventory:

---

## Checkout the documentation for the copy module.

# copy_files_list:
#   - src: '/path/to/source/file'
#     dest: '/path/to/target/file'
#     create_parent_dirs: no
#     # state: 'absent'

## "Global" files to copy
copy_files_list: []

## "Host group" files to copy
copy_files_group_list: []

## "Host" files to copy
copy_files_host_list: []

## Testing, not yet working:
## Ignore errors during copy job.
# copy_ignore_errors: False

List of internal variables used by the role:

copy_files_list_combined

Authors and license

copy role was written by:

License: AGPLv3


README generated by Ansigenome.

About

Simple role to copy files from the Ansible controller to target systems.

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