all,
A very simple playbook,
---
- hosts: localhost
gather_facts: yes
vars:
tasks:
#- setup:
- debug: msg = "Hostname is {{ ansible_hostname }}"
when I set "gather_facts" to "yes", then ansible-playbook reports the below error:
fatal: [localhost]: FAILED! => {"msg": "module (setup) is missing interpreter line"}
I know it's related to the "setup" module, but don't have a clue to dig it. Did anyone meet the similar issue before? Or any suggestion? Thanks.