I added a new group in my hosts file in ansible and now when I try to ping
I get this error.
$ ansible book01 -m ping
[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 55, column 1
Can someone give me a more complete example of how to tie together ansible
hosts file and the hosts_var directory?
My ansible hosts file is getting out of hand and I want to break it up
better. I use variables for various pieces of info. Currently my hosts file
has sections like this:
[myserve
When I try playbook I see below error
ok: [resoxapp-ch2f-01c.email.comcast.net]
ERROR! the field 'hosts' is required but was not set
my inventory file
[hosts]
resoxapp-ch2f-01c.email.comcast.net
resoxapp-ch2f-02c.email.comcast.net
resoxui-ch2f-02c.email.comcast.net
resoxui-ch2f-01c.ema
Thanks Mirko, But I want to login with my user name which needs a private
key and execute sudo. I am not sure how do i define this on the hosts file
could you please help me with this.
Thanks,
On Wednesday, December 10, 2014 6:35:04 PM UTC+5:30, Mirko Friedenhagen
wrote:
>
> Hello,
>
> the ans
Hello,
the ansible_ssh_user is the one you use for logging in via SSH, not the one
you switch to when sudoing
Regards
Mirko
--
Sent from my mobile
On Dec 9, 2014 10:49 PM, "Adithya Khamithkar" wrote:
> Hi I have written a playbook for Ansible to install a few application. I
> am having trouble
Hi I have written a playbook for Ansible to install a few application. I am
having trouble as I have to run every thing as root which is not a good
idea.
So I have created a sudo user and have created a private key for
authentication.
Could some one help me in defining the hosts file for thi