From bc0985d70c1baa361f8d76d2f6e8fec000405f7f Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Tue, 5 Jul 2016 20:33:08 +0000 Subject: [PATCH] Work around locking issue in known_hosts. --- tasks/persistent_cloud.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tasks/persistent_cloud.yml b/tasks/persistent_cloud.yml index 91c41f01fa..0405b321d1 100644 --- a/tasks/persistent_cloud.yml +++ b/tasks/persistent_cloud.yml @@ -73,9 +73,12 @@ ignore_errors: True register: hostkey when: host_is_up|failed - +# +# Set serial: 1 here due to locking bug with known_hosts +# - name: add new ssh host key (you still need to add it to official ssh_host_keys later) - local_action: known_hosts path={{item}} key="{{ hostkey.stdout }}" host={{ inventory_hostname }} state=present + local_action: known_hosts path={{ item }} key={{ hostkey.stdout }} host={{ inventory_hostname }} state=present + serial: 1 ignore_errors: True with_items: - /root/.ssh/known_hosts