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 in Ansible by Varsha
231 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 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,810 points
253 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,810 points
35 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 in Ansible by Sam
77 views
0 votes
1 answer
+13 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 26, 2018 in DevOps & Agile by DragonLord999
• 8,380 points
145 views
0 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 in Ansible by Sinha
29 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 in Ansible by Sri
39 views