ansible高级用法
2015-12-19 17:52
309 查看
将多个符合正则的文件拷贝到目标机器
将多个文件合并
register
把任务的输出定义为变量,然后用于其他任务
http://xdays.me/ansible状态管理.html
- name: Copy copy: src={{ item }} dest=/root/.sshkeys mode=0600 owner=root group=root with_fileglob: - keys/*.pub
将多个文件合并
- name: Assemble keys into authorized_keys file assemble: src=/root/.sshkeys dest=/root/.ssh/authorized_keys mode=0600 owner=root group=root
register
把任务的输出定义为变量,然后用于其他任务
http://xdays.me/ansible状态管理.html
相关文章推荐
- JavaScript生成随机字符
- js中的KeyCode码
- c#中ref与out的区别
- 关于默认构造函数的一点总结
- 龙芯1B,龙芯1C系列VxWorks操作系统BSP调试完成
- 自定义通知的方法
- 1009. Triple Inversions (35)
- linux命令集锦之curl
- Android点滴---ViewHolder通用,优雅写法
- 线程池技术
- 如何上传图片到服务器(ios)
- 10023---CSS Float(浮动)
- Java 读取汉字全拼简写
- python运算符使用规律
- Bootstrap采样方法的python实现
- python基础
- 生成指定时间内的日期
- python基础
- 自定义ToggleButton--温馨效果-xml中使用代码写监听就好
- Keil MDK之RTX系统时钟节拍和时间管理