Skip to content

Commit 0f76850

Browse files
committed
Change default to reboot one host at a time
This is safer if the playbook is run by accident. Existing behaviour can be reproduced by setting ANSIBLE_SERIAL=0.
1 parent b0fbc2d commit 0f76850

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

etc/kayobe/ansible/reboot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
- name: Reboot the host
33
hosts: seed-hypervisor:seed:overcloud:infra-vms
4-
serial: "{{ lookup('env', 'ANSIBLE_SERIAL') | default(0, true) }}"
4+
serial: "{{ lookup('env', 'ANSIBLE_SERIAL') | default(1, true) }}"
55
tags:
66
- reboot
77
tasks:
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
upgrade:
3+
- |
4+
The ``reboot.yml`` custom Ansible playbook now defaults to reboot only one
5+
host at a time. Existing behaviour can be reproduced by setting
6+
ANSIBLE_SERIAL=0.

0 commit comments

Comments
 (0)