Reset unreachable hosts - Ansible

0 votes
How do I reset unreachable hosts in Ansible?

Suppose I have a flagged host and I want to reuse it, how do I do that?
Feb 7, 2019 in Ansible by Varsha
2,149 views

1 answer to this question.

0 votes

If you try using the host that is not reachable. it'll throw a warning saying host unreachable and hence remove the host from the list of active hosts. To recover from this, you can use 

meta: clear_host_errors. 

This will reactivate all flagged hosts and you'll be able to use them again. 

Hope this helps:)

answered Feb 7, 2019 by Yesha

Related Questions In Ansible

+1 vote
1 answer

Ansible: Deleting matching IPs from hosts file using regex

Ansible notation isn't the same as YAML ...READ MORE

answered Jul 25, 2018 in Ansible by DareDev
• 6,890 points
2,324 views
0 votes
1 answer

stopping different hosts from reading the same value when usign ansible in loop

Try using this. Create a new directory ...READ MORE

answered Jul 27, 2018 in Ansible by DareDev
• 6,890 points
702 views
0 votes
1 answer

Configuring SSH Access to the Ansible Hosts

Hey @Shakira, follow these steps: Execute the following ...READ MORE

answered Jan 17, 2019 in Ansible by Sam
1,231 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,036 views
+2 votes
1 answer
0 votes
1 answer

Setting Up Ansible Hosts

Hey @Sammer, follow these steps: Open the host's ...READ MORE

answered Jan 17, 2019 in Ansible by Sinha
651 views
0 votes
1 answer

"FATAL: all hosts have already failed -- aborting" - Ansible error

Hey @Anju, you could change your second ...READ MORE

answered Feb 7, 2019 in Ansible by Sri
1,370 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP