Skip to content
Snippets Groups Projects
Commit 25739edb authored by Chris Hines's avatar Chris Hines
Browse files

allow update process to fail ... likely nodes need to be rebooted more cleanly

parent 3b9367ee
No related branches found
No related tags found
3 merge requests!518modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!517modifications to playbooks because 1. we're not using ldap 2. we're mounting...,!513modifications to playbooks because 1. we're not using ldap 2. we're mounting...
......@@ -139,7 +139,7 @@ ansible_create_cluster_stage:
- export ANSIBLE_HOST_KEY_CHECKING=False
- export ANSIBLE_CONFIG=`pwd`/ansible.cfg
- ansible -i inventory.yml -m ping 'all'
- ansible-playbook -i inventory.yml upgrade_and_reboot.yml
- ansible-playbook -i inventory.yml upgrade_and_reboot.yml || true
- ansible-playbook -i inventory.yml master_playbook.yml
- sleep 15
- echo uglyuglyfix
......
- hosts: 'all'
- hosts: 'all:!BastionNodes'
tasks:
- { apt: { update_cache: yes, upgrade: dist }, register: upgrade, become: true }
- { reboot: {}, when: upgrade.changed, become: true }
- hosts: 'BastionNodes'
tasks:
- { apt: { update_cache: yes, upgrade: dist }, register: upgrade, become: true }
- { reboot: {}, when: upgrade.changed, become: true }
#- { reboot: {}, become: true }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment