<div dir="ltr">my host files looks like this:<div><br></div><div><div>[all:vars]</div><div>ansible_sudo_pass=secretpassword</div><div><br></div><div>[servers]</div><div>10.0.100.56 </div><div>10.0.100.72</div><div>10.0.100.93</div><div>10.0.100.38</div></div><div><br></div><div><br></div><div>my playbook is:</div><div><br></div><div><div>- hosts: servers</div><div>  gather_facts: no</div><div>  user: administrator</div><div>  remote_user: administrator</div><div>  sudo: yes</div><div>  tasks:</div><div>   - name: updates a server</div><div>     apt: update_cache=yes</div><div>   - name: upgrade a server</div><div>     apt: upgrade=dist</div><div><br></div></div><div><br></div><div>So it thought I was pretty clear to ansible that the user is 'administrator'</div><div><br></div><div><br></div><div>when i copied the keys over i did:</div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 3 February 2015 at 12:26, Kevin Groves <span dir="ltr"><<a href="mailto:kgroves@ksoft-creative-projects.co.uk" target="_blank">kgroves@ksoft-creative-projects.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
On 03/02/15 09:00, Dan Attwood wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ok i've done that and that speed things up a bit.<br>
unfortunately it speeds it towards the next fail. witht he debug on I can the errors lists below.<br>
I've double checked that I can ssh into the servers via kay and I'm following the note I made when I had this working at home so and dan :-(<br>
<br>
error below<br>
<br>
<br>
fatal: [10.0.100.37] => SSH encountered an unknown error. The output was:<br>
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014<br>
debug1: Reading configuration data /etc/ssh/ssh_config<br>
debug1: /etc/ssh/ssh_config line 19: Applying options for *<br>
debug1: auto-mux: Trying existing master<br>
</blockquote>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
debug1: Control socket "/home/administrator/.ansible/<u></u>cp/ansible-ssh-10.0.100.37-22-<u></u>administrator" does not exist<br>
</blockquote>
<br></span>
Is this home dir connected with an 'administrator' user? It could be that ansible is using the wrong user key to connect with what looks like 'root' on the other machine.<br>
<br>
Hopefully its just a matter of which user is being used on which side.<br>
<br>
You might also want to take a look at the ansible config file. Mine is in /etc/ansible/ansible.cfg which has lines like:<br>
<br>
poll_interval  = 15<br>
sudo_user      = root<br>
#ask_sudo_pass = True<br>
#ask_pass      = True<br>
transport      = smart<br>
remote_port    = 22<br>
<br>
I think you can be specific about what users are used instead of assuming it knows what you really mean. :-)<br>
<br>
Kev<div class="HOEnZb"><div class="h5"><br>
<br>
<br>
______________________________<u></u>_________________<br>
Kent mailing list<br>
<a href="mailto:Kent@mailman.lug.org.uk" target="_blank">Kent@mailman.lug.org.uk</a><br>
<a href="https://mailman.lug.org.uk/mailman/listinfo/kent" target="_blank">https://mailman.lug.org.uk/<u></u>mailman/listinfo/kent</a><br>
</div></div></blockquote></div><br></div>