摘要: lineinfile 向文本中添加单行 blockinfile 向文本中添加多行 - name: lineinfile hosts: dev tasks: - name: lineinfile lineinfile: path: /tmp/test.txt line: 'Add this line 阅读全文
posted @ 2020-04-01 17:38 Vincen_shen 阅读(256) 评论(0) 推荐(0) 编辑
摘要: When 条件表达式 == < > <= >= != or and vars is defined # 变量存在 vars is not defined # 变量不存在 vars in list # 变量在列表中 When 四种register结果判断 when: result is failed 阅读全文
posted @ 2020-04-01 12:45 Vincen_shen 阅读(1139) 评论(0) 推荐(0) 编辑