ypid.copy

Copy

Travis CI Ansible Galaxy Platforms GitHub Tags GitHub Stars

Important: This role is outdated

It has been replaced by debops.resources.


This role allows you to easily copy files from the Ansible control machine to your target systems.

You can specify which files to copy using inventory variables. This role is based on Ansible’s copy module. If you prefer the synchronize module, you can check out the role ypid.synchronize.

Features

  • Makes sure the target parent directory exists.
  • Can delete files marked with state: 'absent'.

Installation

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

ansible-galaxy install ypid.copy

If you prefer to install it via git, use one of the following commands:

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

Here is a list of default variables available in the inventory:

---

## Refer to 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'

## Files to copy for all hosts
copy_files_list: []

## Files to copy for a specific host group
copy_files_group_list: []

## Files to copy for an individual host
copy_files_host_list: []

## Testing feature (not yet working):
## Ignore errors during the copy process.
# copy_ignore_errors: False

This is a list of internal variables used by the role:

copy_files_list_combined

Authors and License

The copy role was created by:

License: AGPLv3


This README was generated by Ansigenome.

Informazioni sul progetto

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

Installa
ansible-galaxy install ypid.copy
Licenza
agpl-3.0
Download
393
Proprietario
Working on Free Software as in Freedom. EDE1 371D 1B87 D28D A5E8 0515 86FD 980B BF1A 40F8