Skip to content

Commit d76ba77

Browse files
authored
Merge pull request #1221 from stackhpc/reboot
Allow reboot playbook to run with bootstrap user
2 parents e647aa1 + acc08a3 commit d76ba77

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

etc/kayobe/ansible/reboot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
- name: Reboot the host
33
hosts: seed-hypervisor:seed:overcloud:infra-vms
44
serial: "{{ lookup('env', 'ANSIBLE_SERIAL') | default(1, true) }}"
5+
gather_facts: false
6+
vars:
7+
reboot_with_bootstrap_user: false
8+
ansible_user: "{{ bootstrap_user if reboot_with_bootstrap_user | bool else kayobe_ansible_user }}"
9+
ansible_ssh_common_args: "{{ '-o StrictHostKeyChecking=no' if reboot_with_bootstrap_user | bool else '' }}"
10+
ansible_python_interpreter: "/usr/bin/python3"
511
tags:
612
- reboot
713
tasks:

0 commit comments

Comments
 (0)