Thanks Kai for your feedback.
[root@host- ansible]#
[root@host- ansible]#
[root@host- ansible]# ansible all -m ping -u root
SSH password:
SUDO password[defaults to SSH password]:
[WARNING]: * Failed to parse /etc/ansible/hosts with yaml plugin: Syntax Error while loading YAML. The error appears to have been in '/etc/ansible/hosts':
line 3, column 1, but may be elsewhere in the file depending on the exact syntax problem. The offending line appears to be: #nfvd42ffgui 10.75.46.104 ^ here
exception type: <class 'yaml.parser.ParserError'> exception: did not find expected <document start> in "<unicode string>", line 3, column 1
[WARNING]: * Failed to parse /etc/ansible/hosts with constructed plugin: Unable to parse /etc/ansible/hosts: Syntax Error while loading YAML. The error
appears to have been in '/etc/ansible/hosts': line 3, column 1, but may be elsewhere in the file depending on the exact syntax problem. The offending line
appears to be: #nfvd42ffgui 10.75.46.104 ^ here exception type: <class 'yaml.parser.ParserError'> exception: did not find expected <document start> in
"<unicode string>", line 3, column 1
[WARNING]: Unable to parse /etc/ansible/hosts as an inventory source
[WARNING]: No inventory was parsed, only implicit localhost is available
[WARNING]: Could not match supplied host pattern, ignoring: all
[WARNING]: provided hosts list is empty, only localhost is available
[WARNING]: No hosts matched, nothing to do
I configure my /etc/ansible/hosts as below:
[FF12]
10.14.X.X
10.14.XX
and the ansible.cfg is set out with the default values.
Please suggest.
Thank you
M I C