# Dell OS9 upgrade using Ansible

**URL:** <https://forum.ansible.com/t/dell-os9-upgrade-using-ansible/28700>\
**Category:** Ansible Project\
**Created:** [October 1, 2018, 6:12pm UTC](https://forum.ansible.com/t/dell-os9-upgrade-using-ansible/28700 "2018-10-01T18:12:15Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dow\_Bennett](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dow\_Bennett](https://forum.ansible.com/u/Dow_Bennett)\
**Post date:** [October 1, 2018, 6:12pm UTC](https://forum.ansible.com/t/dell-os9-upgrade-using-ansible/28700/1 "2018-10-01T18:12:15Z")

</div>

Hello!

I am a noob in Ansible so please forgive me. I am trying to upgrade an OS9 switch using the dellos9\_command module (there is a method to upgrade OS10 via Roles but not OS9).

playbook:

---

<div class="post-metadata">

**Author:** ![Brad2](https://avatars.discourse-cdn.com/v4/letter/b/49beb7/32.png) [@Brad2](https://forum.ansible.com/u/Brad2)\
**Post date:** [October 2, 2018, 4:59pm UTC](https://forum.ansible.com/t/dell-os9-upgrade-using-ansible/28700/2 "2018-10-02T16:59:30Z")

</div>

Maybe do something like find in: [reboot without failing ansible](https://www.jeffgeerling.com/blog/2018/reboot-and-wait-reboot-complete-ansible-playbook) ? Would that work?

---

<div class="post-metadata">

**Author:** ![Dow\_Bennett](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dow\_Bennett](https://forum.ansible.com/u/Dow_Bennett)\
**Post date:** [October 2, 2018, 7:24pm UTC](https://forum.ansible.com/t/dell-os9-upgrade-using-ansible/28700/3 "2018-10-02T19:24:25Z")

</div>

I had no luck with asynchronous actions or the wait\_for\_connection. However, I did find if I set the persistent connect\_timeout and command\_timeout in ansible.cfg to a value high enough for the command to complete that it works! However, I would prefer if the ansible.cfg file didn’t have these set permanently. I know there is a way to set them in the playbook… but I haven’t figured it out yet. I’m sure its basic but like I said I am new to ansible. Any advice?

Thanks for the help!

---

<div class="post-metadata">

**Author:** ![Dow\_Bennett](https://avatars.discourse-cdn.com/v4/letter/d/f05b48/32.png) [@Dow\_Bennett](https://forum.ansible.com/u/Dow_Bennett)\
**Post date:** [October 2, 2018, 8:51pm UTC](https://forum.ansible.com/t/dell-os9-upgrade-using-ansible/28700/4 "2018-10-02T20:51:15Z")

</div>

I discovered that the persistence command\_timeout variable was added in Ansible 2.7 (which I am not using). So I will just set them as global variables for now. Thanks again.
