Le 19/08/2016 à 14:20, Frank Thommen a écrit :
> On 08/19/2016 01:54 PM, Jean-Yves LENHOF wrote:
<snip>
>>
>> The first task ansible is doing is gathering facts.... In facts there
>> are mounted filesystems, so the NFS one too
>
> Thanks a lot.  Using 'gather_facts: no' in the playbook solved this
> issue:
>
> ---
> - hosts: '{{ target }}'
>   gather_facts: no
>   tasks:
>   - name:    Run ls
>     shell:  /bin/ls
>
>
> However I found this feature to be quite hidden in the documentation.
> IMHO gather_facts should be off by default and only on on request.

Hi,

No it is ok that's on by default and that should stay like this. A lot
of my playbooks (and from other people too) depends on facts
(|ansible_distribution,
||ansible_distribution_version, ||ansible_lsb.major_release, to name the
most currents one....)|
||||

|If you need, you can filter facts :
http://stackoverflow.com/questions/34485286/ansible-gathering-facts-with-filter-inside-a-playbook
But from my point of view, is NFS is not responding, it's your server
that is broken... Perhaps automouting (and so dismounting) NFS is an
option for you Regards, JYL |

-- 
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/faf0ab3d-a550-855f-3eec-6691e24b012a%40lenhof.eu.org.
For more options, visit https://groups.google.com/d/optout.

Reply via email to