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:
Bogdan Dobrelya 2018-08-17 16:10:22 +02:00
parent 41a5e37156
commit 0a3a909ca5
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@
user: root
key: "{{ lookup('file', virt_power_key|quote + '.pub')|default('') }}"
when: libvirt_uri == "qemu:///system"
become: true
# Copy the public key to `$HOME/.ssh/authorized_keys` for the `root`
# and `undercloud_user` user on the undercloud.