[ansible-project] ansible hosts file yaml errors DUO authentication

2018-05-04 Thread Tedley Meralus
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

[ansible-project] ansible hosts and hosts_vars usage

2016-03-31 Thread thanstra
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

[ansible-project] Ansible Hosts

2016-03-30 Thread anil kumar
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

Re: [ansible-project] Ansible hosts configuration using private key and sudo user

2014-12-10 Thread Adithya Khamithkar
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

Re: [ansible-project] Ansible hosts configuration using private key and sudo user

2014-12-10 Thread Mirko Friedenhagen
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

[ansible-project] Ansible hosts configuration using private key and sudo user

2014-12-09 Thread Adithya Khamithkar
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