摘要: lineinfile 此模块是针对文件特殊行,使用后端引用的正则表达式来替换。 - hosts: 192.168.50.1 gather_facts: no tasks: - name: 设置UseDNS为no lineinfile: dest: /etc/ssh/sshd_config # 需要修 阅读全文
posted @ 2020-06-11 11:38 yuhaohao 阅读(312) 评论(0) 推荐(0) 编辑