reboot on RHEL7

120 views
Skip to first unread message

shirou

unread,
Oct 3, 2014, 4:04:07 AM10/3/14
to ansible...@googlegroups.com
Hi all,

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

- name: reboot
shell: /sbin/reboot
- name: wait for the server to go down
local_action: wait_for host={{ inventory_hostname }} port=22 state=stopped

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

-----------
TASK: [reboot] ******************************************************
failed: [54.17x.xx.xx] => {"failed": true, "parsed": false}
invalid output was: SUDO-SUCCESS-wwqfdthqxuqybxwolkxtnftpexn

FATAL: all hosts have already failed -- aborting
-----------

when using async: 20 and poll: 0, this error has been occurred.

-----------
TASK: [reboot]
****************************************************************
failed: [54.17x.xx.xx] => {"failed": true, "parsed": false}
invalid output was: SUDO-SUCCESS-ahqnoxxxbgeyjmmsawrhzozycqj

ERROR: unexpected error: unable to determine jid
-----------

Is this systemd related problem?


Thank you,
WAKAYAMA Shirou

James Cammarata

unread,
Oct 3, 2014, 2:39:50 PM10/3/14
to ansible...@googlegroups.com
Hi Shirou, 

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

Thanks!


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CANCK7KfQVC%3D99rE4aAScMJb%3Dr%2BFL%2BRrfLpUEhsTpi_Aq4zZ9Ng%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

shirou

unread,
Oct 4, 2014, 9:33:26 AM10/4/14
to ansible...@googlegroups.com
Thank you!

But unfortunately, same problem was occurred on the devel.

% git log HEAD -1
commit 94db7365b911ac740902142e807ab5f65a970f94
Author: Michael DeHaan <michael...@gmail.com>
Date: Fri Oct 3 17:08:52 2014 -0400

__getattr__ to hide some of the attribute magic.

% git submodule update

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

# Should I make a new issue ticket?


Regards,
WAKAYAMA Shirou
> https://groups.google.com/d/msgid/ansible-project/CAMFyvFiJuY-QxX7JsqxwX8fZu4vaOJAys-sed1%2Bfwwn6of3_Lw%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages