Playbook Debug用法
debug调试模块
---
- name: install debug
hosts: test
vars_files:
- /root/ansible/vars_file.yml
- /root/ansible/vars_file01.yml
tasks:
- name: install {{pkg_name}}
debug:
msg: "{{pkg}}"- name: install debug
hosts: test
vars_files:
- /root/ansible/vars_file.yml
- /root/ansible/vars_file01.yml
tasks:
- name: install {{pkg_name}}
debug:
msg: "{{pkg}}"
- debug:
var: xLast updated