Changeset 14187 for main/waeup-ansible


Ignore:
Timestamp:
24 Sep 2016, 21:53:26 (8 years ago)
Author:
uli
Message:

Set port when waiting for server reboot.

When we reboot a host and wait for it to come up again, ansible will
by default wait for the complete timeout time before
continuing. Even if the host is already up for minutes.

But if we tell what port to check (SSH), ansible continues happily a
few seconds after the host is back up again. Just as it should :D

Tonight I tested on h5...h7 and it really worked.

We can now reboot all hosts with one command - while all special
services like Plone instances, odoo instances, kofas, etc. will be
shutdown and restartet correctly and automatically. Yay!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup-ansible/playbook-reboot.yml

    r14186 r14187  
    3131    local_action: wait_for
    3232                  host={{ inventory_hostname }}
     33                  port=22
    3334                  state=started
    3435                  delay=30
Note: See TracChangeset for help on using the changeset viewer.