From 1ceb21c0e253c7ef91a9958bc075369aaafdeaed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Andr=C3=A9?= Date: Tue, 12 Jun 2018 15:00:32 +0200 Subject: [PATCH] Write to /etc/ssh with super user privileges Not sure why it's working in CI or in the general case, but I've seen this task fail with "Destination /etc/ssh not writable" from time to time. This commit ensures it's always run with super user privilege so it can write it /etc/ssh directory. Change-Id: Ia753b5e842c20c21714111c6267ef70d53d9de4a --- roles/tripleo-ssh-known-hosts/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/tripleo-ssh-known-hosts/tasks/main.yml b/roles/tripleo-ssh-known-hosts/tasks/main.yml index c9241fd39..69576657f 100644 --- a/roles/tripleo-ssh-known-hosts/tasks/main.yml +++ b/roles/tripleo-ssh-known-hosts/tasks/main.yml @@ -1,6 +1,7 @@ --- - name: Template /etc/ssh/ssh_known_hosts + become: true template: src: ssh_known_hosts.j2 dest: /etc/ssh/ssh_known_hosts