From f5d470c31af765ff29b561014244e2f7aac45347 Mon Sep 17 00:00:00 2001 From: Jacob Wagner Date: Wed, 3 Sep 2014 16:07:54 -0500 Subject: [PATCH] changed lineinfile to pure shell command due to race condition on adding items to tmp/authorized_keys --- .../roles/nova_compute_sshkey_create/tasks/main.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/rpc_deployment/roles/nova_compute_sshkey_create/tasks/main.yml b/rpc_deployment/roles/nova_compute_sshkey_create/tasks/main.yml index 689ade0f68..11da1bc579 100644 --- a/rpc_deployment/roles/nova_compute_sshkey_create/tasks/main.yml +++ b/rpc_deployment/roles/nova_compute_sshkey_create/tasks/main.yml @@ -53,8 +53,5 @@ changed_when: false - name: Build authorized keys - lineinfile: - dest: "/tmp/authorized_keys" - line: "{{ nova_pub.stdout }}" - create: "yes" + shell: echo "{{ nova_pub.stdout }}" | tee -a /tmp/authorized_keys delegate_to: localhost