On Wednesday, 11 April 2018 15.56.25 CEST Uwe Sauter wrote:
> ###### playbook
> ---
> - name: run preparations
>   hosts: '{{ groups["image_creator"] | first }}'
>   gather_facts: false
>   tasks:
>     - name: recreate locale archive
>       shell: /root/bin/rebuild_locale.sh
>       ignore_errors: yes
> 
>     - meta: clear_host_errors
> ######
> 
> Unfortunatelly, the required command "build-locale-archive" causes a 
> disconnect of the SSH connection which causes Ansible to mark
> the host down. "meta: clear_host_errors" doesn't help.
> 
> Any suggestions?

You can use async on the task to fire and forget it.
And in the next task have wait_for to check when ssh is responding again.


-- 
Kai Stian Olstad

-- 
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/11393098.VZ6x21lJqt%40x1.
For more options, visit https://groups.google.com/d/optout.

Reply via email to