When ansible is rerun against cloud06, the public key for the root
user of lava-master-03 was being removed, causing lava jobs to fail as
they could not connect to run virsh commands.
C.f. https://lava-master-03.internal.efficios.com/scheduler/job/502#action_2-3-1-1
Change-Id: I7b7986fa34d8925468ed962c598f73c0bd78b823
--- /dev/null
+---
+extra_root_ssh_authorized_keys:
+ # yamllint disable-line rule:line-length
+ - 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILmmI2pn+ncFKm/fOS5+RskBGnhbMd0p399ZWEKLUQ+Q lava-master-03'
- name: Set up authorized_keys for the root user
authorized_key:
user: 'root'
- key: "{% for key in query('fileglob', 'public_keys/*.pub') %}{{ lookup('file', key) ~ '\n'}}{% endfor %}"
+ key: "{% for key in query('fileglob', 'public_keys/*.pub') %}{{ lookup('file', key) ~ '\n'}}{% endfor %}\n{% for key in lookup('vars', 'extra_root_ssh_authorized_keys', default=[]) %}{{ key ~ '\n' }}{% endfor %}"
exclusive: true
when: ansible_os_family != 'Windows'