---
- 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: x
---
- name: httpd
hosts: test
tasks:
- name: Command run line
shell: date
register: return_value
- name: Show debug info
debug: var=return_value
# debug: var=return_value.stdout
# debug: var=return_value.stdout_lines