Use sudo when working with root home as non root
Change-Id: Idf3b739faf4cbe66a5bd1eb21d9cb538615f6688 Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
This commit is contained in:
parent
41a5e37156
commit
0a3a909ca5
|
@ -104,6 +104,7 @@
|
||||||
user: root
|
user: root
|
||||||
key: "{{ lookup('file', virt_power_key|quote + '.pub')|default('') }}"
|
key: "{{ lookup('file', virt_power_key|quote + '.pub')|default('') }}"
|
||||||
when: libvirt_uri == "qemu:///system"
|
when: libvirt_uri == "qemu:///system"
|
||||||
|
become: true
|
||||||
|
|
||||||
# Copy the public key to `$HOME/.ssh/authorized_keys` for the `root`
|
# Copy the public key to `$HOME/.ssh/authorized_keys` for the `root`
|
||||||
# and `undercloud_user` user on the undercloud.
|
# and `undercloud_user` user on the undercloud.
|
||||||
|
|
Loading…
Reference in New Issue