<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">LOL I would suggest switching off that
host for system checks at run time. I've had it do something like
this myself and I think it comes down to the auto gather facts
failing due to some non-dependancy at the client end. You can turn
off the gather facts for all hosts (makes it run quicker - and
then only check hosts you want) or switch it off on a host basis.
Now you are going to ask how :-)<br>
<br>
Take a look here:<br>
<br>
<a class="moz-txt-link-freetext" href="http://docs.ansible.com/playbooks_variables.html#turning-off-facts">http://docs.ansible.com/playbooks_variables.html#turning-off-facts</a><br>
<br>
<pre>- hosts: whatever
gather_facts: no
That will switch it all off and what I would then do is run any specific fact gathering on a host by host basis, although tbh if you know your systems then you shouldn't really need to do this.
Kev,
</pre>
<br>
<br>
<br>
On 02/02/15 10:52, Dan Attwood wrote:<br>
</div>
<blockquote
cite="mid:CAGcBgjjgqtM0joJ_+2y_nJ+HoTX-H8ioqLrM=60JjJ7KtE_tXg@mail.gmail.com"
type="cite">
<div dir="ltr">After Kevins talk at the last klug I've been having
another play with ansible.
<div><br>
</div>
<div>I've got my list of hosts set up and I've exported my ssh
key from my ansible server to them.</div>
<div><br>
</div>
<div>I can do:</div>
<div><br>
</div>
<div><br>
</div>
<div>ansible all -m ping vvvv </div>
<div><br>
</div>
<div>and they all ping and check fine.</div>
<div><br>
</div>
<div><br>
</div>
<div>when I run my playbook though (That checks for and applies
updates) it runs through the gathering facts section and then
just sits on the last host;</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>
<div>
<div><10.0.100.99> ESTABLISH CONNECTION FOR USER:
administrator</div>
<div><10.0.100.99> REMOTE_MODULE setup</div>
<div><10.0.100.99> EXEC ssh -C -tt -vvv -o
ControlMaster=auto -o ControlPersist=60s -o
ControlPath="/home/administrator/.ansible/cp/ansible-ssh-%h-%p-%r"
-o Port=22 -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o User=administrator -o
ConnectTimeout=10 10.0.100.99 /bin/sh -c 'mkdir -p
$HOME/.ansible/tmp/ansible-tmp-1422870360.74-45757553727916
&& chmod a+rx
$HOME/.ansible/tmp/ansible-tmp-1422870360.74-45757553727916
&& echo
$HOME/.ansible/tmp/ansible-tmp-1422870360.74-45757553727916'</div>
<div><10.0.100.99> PUT /tmp/tmpaGcn6F TO
/home/administrator/.ansible/tmp/ansible-tmp-1422870360.74-45757553727916/setup</div>
<div><10.0.100.99> EXEC ssh -C -tt -vvv -o
ControlMaster=auto -o ControlPersist=60s -o
ControlPath="/home/administrator/.ansible/cp/ansible-ssh-%h-%p-%r"
-o Port=22 -o KbdInteractiveAuthentication=no -o
PreferredAuthentications=gssapi-with-mic,gssapi-keyex,hostbased,publickey
-o PasswordAuthentication=no -o User=administrator -o
ConnectTimeout=10 10.0.100.99 /bin/sh -c 'sudo -k
&& sudo -H -S -p "[sudo via ansible,
key=qwqneiukdxvgdklcqsbekawxtfyrcfaw] password: " -u root
/bin/sh -c '"'"'echo
SUDO-SUCCESS-qwqneiukdxvgdklcqsbekawxtfyrcfaw; LANG=C
LC_CTYPE=C /usr/bin/python
/home/administrator/.ansible/tmp/ansible-tmp-1422870360.74-45757553727916/setup;
rm -rf
/home/administrator/.ansible/tmp/ansible-tmp-1422870360.74-45757553727916/
>/dev/null 2>&1'"'"''</div>
<div>ok: [10.0.100.99]</div>
</div>
</div>
<div><br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>and thats it - now moving on to apply the next sections.</div>
<div><br>
</div>
<div>And ideas anyone - by which I mean Kevin :-)</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
Kent mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Kent@mailman.lug.org.uk">Kent@mailman.lug.org.uk</a>
<a class="moz-txt-link-freetext" href="https://mailman.lug.org.uk/mailman/listinfo/kent">https://mailman.lug.org.uk/mailman/listinfo/kent</a></pre>
</blockquote>
<br>
</body>
</html>