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

 [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




*Regards,*
Iqbal Chowdhury
+1 214-440-9348


On Thu, Nov 23, 2017 at 2:28 PM, Kai Stian Olstad <
[email protected]> wrote:

> On Thursday, 23 November 2017 00.03.25 CET Iqbal Chowdhury wrote:
> > Hi Kai,
> >
> > Thanks for the reply.
> >
> > Would you please provide some example based on my requirements?
>
> This is very basic Ansible that you can learn from a book or read the
> Ansible docs[1].
>
>
> > And the other thing would like to know :
> > I have the Ansible installed in management node. And the other nodes
> which I am taking as remote hosts where the product software running are
> also having Ansible which product requires.
> > My question is :is that ok having Ansible installed in all remote hosts
> as well as management node?
>
> That's not a problem, Ansible is just a program waiting to be executed by
> the user.
>
> > Does it require same version of Ansible installed in all?
>
> Ansible doesn't require Ansible on the remote hosts, Ansible is agent-less
> and only requires SSH and Python on the remote hosts.
> That said, some modules require additional Python modules on the remote
> node, this is documented in the documentation for each module.
> And it's possible to use Ansible on entities that do not have Python.
>
>
> [1] https://docs.ansible.com/
>
>
> --
> 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/5535008.pkajJAlBLd%40x1.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALbbZz85gsRxL2Z%2BoTwcYbiXRawkvMm3vMazMs6o4u6dZ3GErA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to