ypid.copy

复制

Travis CI Ansible Galaxy 平台 GitHub 标签 GitHub 星星

警告,这是一个不再维护的角色

它已被 debops.resources 替代。


这是一个简单的角色,用于将文件从 Ansible 控制器复制到目标系统。

这个角色的设计是为了能够通过库存变量指定要复制的文件。它基于 Ansible 的 [复制模块]。如果 [同步模块] 更合适,可以查看角色 ypid.synchronize

特性

  • 确保目标父目录存在。
  • 允许删除定义为 state: 'absent' 的文件。

安装

此角色至少需要 Ansible v1.9.0。要安装它,请运行:

ansible-galaxy install ypid.copy

通过 git 安装,请运行以下任一命令:

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

角色变量

库存中可用的默认变量列表:

---

## 查看复制模块的文档。

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

## “全局”要复制的文件
copy_files_list: []

## “主机组”要复制的文件
copy_files_group_list: []

## “主机”要复制的文件
copy_files_host_list: []

## 测试,尚未正常工作:
## 忽略复制作业中的错误。
# copy_ignore_errors: False

角色使用的内部变量列表:

copy_files_list_combined

作者和许可证

copy 角色由以下人员编写:

许可证:AGPLv3


README 由 Ansigenome 生成。

关于项目

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

安装
ansible-galaxy install ypid.copy
许可证
agpl-3.0
下载
393
拥有者
Working on Free Software as in Freedom. EDE1 371D 1B87 D28D A5E8 0515 86FD 980B BF1A 40F8