当前位置:网站首页>ansible module --copy module
ansible module --copy module
2022-08-02 11:00:00 【51CTO】
Copy files from the master to the remote host,只针对文件
src 源文件路径
dest 目标文件路径
content 将指定内容覆盖写入到目标主机文件中
force=no 当主控端拷贝的文件名和目标名一致,但是内容不一致,放弃拷贝
force=yes 当主控端拷贝的文件名和目标名一致,但是内容不一致,则进行覆盖
backup=yes 当主控端拷贝的文件名和目标名一致,但是内容不一致,则进行备份
1.将源文件,copy到被控端
2.Overwrite the specified content into the host file
3.Send the file to the controlled end,Make a backup if the content is different,并覆盖
4.Modify the owner during copying
权限参数
owner 属主
group 属组
mode 权限
版权声明:本文为博主原创文章,未经博主允许不得转载.
ansible
边栏推荐
- STM32+MPU6050 Design Portable Mini Desktop Clock (Automatically Adjust Time Display Direction)
- Hello, my new name is "Bronze Lock/Tongsuo"
- Geoffery Hinton:深度学习的下一个大事件
- 2022年8月初济南某外包公司全栈开发面试题整理
- 多线程之生产者与消费者
- LayaBox---TypeScript---Three slash instructions
- 全方位剖析Numpy中的np.diag源代码
- “纯C”实现——三子棋小游戏
- Mysql环境变量的配置(详细图解)
- 从测试入门到测试架构师,这10年,他是这样让自己成才的
猜你喜欢
随机推荐
LayaBox---TypeScript---Module Analysis
OSI 七层模型和TCP/IP模型及对应协议(详解)
org.apache.ibatis.binding.BindingException Invalidbound statement (not found)的解决方案和造成原因分析(超详细)
Failed to configure mysql, what's going on?
为什么要使用BGP?
Oracle查询提示 ORA-00933 SQL command not properly ended 原因排查
【术语科普】关于集成工作台那些难懂的词儿,看这篇秒懂!
STM32+MPU6050 Design Portable Mini Desktop Clock (Automatically Adjust Time Display Direction)
MSYS2 QtCreator Clangd code analysis can not find mm_malloc.h problem remedy
Mysql环境变量的配置(详细图解)
周杰伦新歌发布,爬取《Mojito》MV弹幕,看看粉丝们都说的些啥!
SVN如何删除文件名包含空格的文件
Shell编程案例
LayaBox---TypeScript---模块解析
SQLAlchemy使用教程
ssm网页访问数据库数据报错
Outsourced Student Management System Architecture Documentation
2022年8月初济南某外包公司全栈开发面试题整理
Jay Chou's new song is released, crawl the "Mojito" MV barrage, and see what the fans have to say!
LayaBox---TypeScript---命名空间和模块









