On Sunday, 26 November 2017 06.49.56 CET Iqbal Chowdhury wrote: > > Thanks Kai for your feedback. > > Now I am getting the below error: > > [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 > > > > 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.
Your error messages say your hosts file contains more info than that. You get this error when inventory file called hosts in your case is wrong. So if you don't share the whole file unedited we are not able to help. -- Kai Stian Olstad -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/377962711.5dPpoX8JKl%40x1. For more options, visit https://groups.google.com/d/optout.
