Changeset 14763


Ignore:
Timestamp:
3 Aug 2017, 23:33:27 (7 years ago)
Author:
uli
Message:

Fix reboot playbook.

There were two problems with the former version of
this playbook which should be fixed now:

  • we do not restart virtual nodes (as their hosts are restarted already)
  • we act asyncronously when restarting machines

The latter led to predictable failures when rebooting
Ubuntu 16.04 machines. With 14.04, however, the
async: 0 setting worked fine.

File:
1 edited

Legend:

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

    r14678 r14763  
    1717- include: playbook-prep-reboot.yml
    1818
    19 - hosts: all
     19- hosts: nonvirtual
    2020  become: yes
    2121  become_user: root
     
    2323  - name: Restart machine
    2424    shell: sleep 2 && /sbin/shutdown -r now "Ansible triggered reboot"
    25     async: 0
     25    async: 1
    2626    poll: 0
    2727    ignore_errors: true
Note: See TracChangeset for help on using the changeset viewer.