From 0a3a909ca5f9bc66870cc27880c33b461878d71e Mon Sep 17 00:00:00 2001 From: Bogdan Dobrelya Date: Fri, 17 Aug 2018 16:10:22 +0200 Subject: [PATCH] Use sudo when working with root home as non root Change-Id: Idf3b739faf4cbe66a5bd1eb21d9cb538615f6688 Signed-off-by: Bogdan Dobrelya --- roles/libvirt/setup/undercloud/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/libvirt/setup/undercloud/tasks/main.yml b/roles/libvirt/setup/undercloud/tasks/main.yml index 977d51dcb..7d3b6ed18 100644 --- a/roles/libvirt/setup/undercloud/tasks/main.yml +++ b/roles/libvirt/setup/undercloud/tasks/main.yml @@ -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.