Skip to content

Commit

Permalink
Moves reboot to the end.
Browse files Browse the repository at this point in the history
  • Loading branch information
hlapp committed Feb 6, 2016
1 parent 59cac5e commit 332c9ad
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions bbb-init.yml
Original file line number Diff line number Diff line change
Expand Up @@ -206,17 +206,6 @@
regexp: '^(USERGROUPS_ENAB +)yes$'
replace: '\1 no'

# this should be it; reboot and wait for that to complete successfully
- name: reboot
command: reboot
async: 5
poll: 0
ignore_errors: True

- name: wait for reboot to complete
local_action: wait_for port=22 host={{ new_hostname ~ ".local" if new_hostname|string != "None" else inventory_hostname }}
become: false

# update the package cache and upgrade everything
- name: apt update and dist-upgrade
apt: update_cache=yes upgrade=dist cache_valid_time=1800
Expand All @@ -238,3 +227,15 @@
become: false
- name: update kernel - run update script
command: ./update_kernel.sh chdir=/opt/scripts/tools/

# this should be it; reboot and wait for that to complete successfully
- name: reboot
command: reboot
async: 5
poll: 0
ignore_errors: True

- name: wait for reboot to complete
local_action: wait_for port=22 host={{ new_hostname ~ ".local" if new_hostname|string != "None" else inventory_hostname }}
become: false

0 comments on commit 332c9ad

Please sign in to comment.