# reboot on RHEL7

**URL:** <https://forum.ansible.com/t/reboot-on-rhel7/16413>\
**Category:** Ansible Project\
**Tags:** rhel\
**Created:** [October 3, 2014, 8:03am UTC](https://forum.ansible.com/t/reboot-on-rhel7/16413 "2014-10-03T08:03:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![shirou](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@shirou](https://forum.ansible.com/u/shirou)\
**Post date:** [October 3, 2014, 8:03am UTC](https://forum.ansible.com/t/reboot-on-rhel7/16413/1 "2014-10-03T08:03:44Z")

</div>

Hi all,

I used ansible-1.7.2, and I created this playbook to reboot and wait  
until wakeup.

&nbsp;&nbsp;&nbsp;&nbsp;- name: reboot  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;shell: /sbin/reboot  
&nbsp;&nbsp;&nbsp;&nbsp;- name: wait for the server to go down  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;local\_action: wait\_for host={{ inventory\_hostname }} port=22 state=stopped

It works on RHEL6. However, on RHEL 7 ansible-playbook is failed.

---

<div class="post-metadata">

**Author:** ![James\_Cammarata](https://avatars.discourse-cdn.com/v4/letter/j/7c8e57/32.png) [@James\_Cammarata](https://forum.ansible.com/u/James_Cammarata)\
**Post date:** [October 3, 2014, 6:39pm UTC](https://forum.ansible.com/t/reboot-on-rhel7/16413/2 "2014-10-03T18:39:45Z")

</div>

Hi Shirou,

I believe this error was fixed in devel, if you’d like to test it there.

Thanks!

---

<div class="post-metadata">

**Author:** ![shirou](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@shirou](https://forum.ansible.com/u/shirou)\
**Post date:** [October 4, 2014, 1:33pm UTC](https://forum.ansible.com/t/reboot-on-rhel7/16413/3 "2014-10-04T13:33:01Z")

</div>

Thank you!

But unfortunately, same problem was occurred on the devel.

% git log HEAD -1  
commit 94db7365b911ac740902142e807ab5f65a970f94  
Author: Michael DeHaan \<michael.dehaan@gmail.com\>

&nbsp;&nbsp;&nbsp;&nbsp;\_\_getattr\_\_ to hide some of the attribute magic.

% git submodule update

% ansible-playbook --version  
&nbsp;&nbsp;ansible-playbook 1.8  
&nbsp;&nbsp;&nbsp;&nbsp;configured module search path = None

# Should I make a new issue ticket?

Regards,  
WAKAYAMA Shirou
