# Reboot that requires inventory refresh

**URL:** <https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534>\
**Category:** Ansible Project\
**Created:** [January 29, 2021, 8:54am UTC](https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534 "2021-01-29T08:54:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Paavo\_Leinonen](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@Paavo\_Leinonen](https://forum.ansible.com/u/Paavo_Leinonen)\
**Post date:** [January 29, 2021, 8:54am UTC](https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534/1 "2021-01-29T08:54:30Z")

</div>

Hi,

I have 2 VPN servers, and remote-random in VPN config, so clients connect to server1 or server2.

I need clients to reboot after major upgrades (new kernel), and the problem is that if the client connects to different VPN server, reboot module fails because it cannot connect any more to the client (to run test\_command to see if the client rebooted successfully) using the old/wrong VPN server.

I found meta: refresh\_inventory, but cannot figure out now can I refresh inventory in the middle of running the reboot module.

Help appreciated.

-Paavo

---

<div class="post-metadata">

**Author:** ![Paavo\_Leinonen](https://avatars.discourse-cdn.com/v4/letter/p/6a8cbe/32.png) [@Paavo\_Leinonen](https://forum.ansible.com/u/Paavo_Leinonen)\
**Post date:** [January 29, 2021, 11:14am UTC](https://forum.ansible.com/t/reboot-that-requires-inventory-refresh/34534/2 "2021-01-29T11:14:52Z")

</div>

Ideally, inventory would be refreshes after each reboot connect\_timeout to ensure the connection update will be taken into use.

perjantai 29. tammikuuta 2021 klo 10.54.30 UTC+2 Paavo Leinonen kirjoitti:
