摘要: ansible 对文件内容的操作 作者: 张首富 时间: 2021-05-13 wx: y18163201 ansible lineinfile 简介 lineinfile该模块是操作文件中的每一行内容,他是按照行为单位的,和下面的replace模块并不冲突。 修改匹配行,如果不存在就会添加 tas 阅读全文
posted @ 2021-05-13 15:10 张首富 阅读(5499) 评论(0) 推荐(2) 编辑
摘要: ansible 初始化系统分区格式化 作者: 张首富 时间: 2021-05-13 wx: y18163201 创建分区并进行格式化 tasks: - name: '未分区磁盘' parted: device=/dev/{{item.key}} number=1 state=present when 阅读全文
posted @ 2021-05-13 15:09 张首富 阅读(769) 评论(0) 推荐(0) 编辑