当前位置:网站首页>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
边栏推荐
- 8年软件测试工程师的感悟:与薪资相匹配的永远是实力
- Deep Learning 100 Examples - Convolutional Neural Network (CNN) for mnist handwritten digit recognition
- 多线程(基础) - 4万字总结
- SQL 经典50题(题目+解答)(1)
- Oracle查询提示 ORA-00933 SQL command not properly ended 原因排查
- Shell编程案例
- Kotlin的协程与生命周期
- SVN如何删除文件名包含空格的文件
- STM32+MPU6050 Design Portable Mini Desktop Clock (Automatically Adjust Time Display Direction)
- C#/VB.NET to add more lines more columns image watermark into the Word document
猜你喜欢
C#/VB.NET to add more lines more columns image watermark into the Word document
使用较广泛的安全测试工具有哪些?
图形处理单元(GPU)的演进
爆款视频怎么做?这里或许有答案!
深度学习100例 —— 卷积神经网络(CNN)实现mnist手写数字识别
4年手工测试被应届生取代了,用血与泪的教训给xdm一个忠告,该学自动化了...
STM32+MPU6050 Design Portable Mini Desktop Clock (Automatically Adjust Time Display Direction)
Alibaba CTO Cheng Li: Alibaba Open Source History, Concept and Practice
阿里CTO程立:阿里巴巴开源的历程、理念和实践
games202:三,实时环境光照IBL + PRT
随机推荐
LayaBox---TypeScript---Symbols
OLED的HAL库代码介绍及使用(stm32f1/I2C/HAL库版/100%一次点亮)
38岁女儿不恋爱没有稳定工作老母亲愁哭
STM32+MPU6050 Design Portable Mini Desktop Clock (Automatically Adjust Time Display Direction)
通过方法引用获取方法名
mysql清除binlog日志文件
LeetCode每日一练 —— 225. 用队列实现栈
Multithreading (Basic) - 40,000 word summary
Challenge LeetCode1000 questions in 365 days - Day 047 Design Circular Queue Circular Queue
3 d laser slam: LeGO - LOAM - ground point extracting method and the analysis of the code
SQL 经典50题(题目+解答)(1)
WPF 截图控件之文字(七)「仿微信」
SVN如何删除文件名包含空格的文件
SQL 数据更新
多大数量级会出现哈希碰撞
利用二维数据学习纹理三维网格生成(CVPR 2020)
有奖征集|TaoCloud&宝德联合举办全闪POC!
After 21 years of graduation, I switched to software testing. From 0 income to a monthly salary of over 10,000, I am really lucky...
外包学生管理系统架构文档
LayaBox---TypeScript---Module Analysis