摘要:
lineinfile 向文本中添加单行 blockinfile 向文本中添加多行 - name: lineinfile hosts: dev tasks: - name: lineinfile lineinfile: path: /tmp/test.txt line: 'Add this line 阅读全文
摘要:
When 条件表达式 == < > <= >= != or and vars is defined # 变量存在 vars is not defined # 变量不存在 vars in list # 变量在列表中 When 四种register结果判断 when: result is failed 阅读全文