From c0a3970e36ac11901f740905d7183ce93f2b3949 Mon Sep 17 00:00:00 2001 From: jamesbagwell Date: Wed, 27 Mar 2019 09:26:58 -0600 Subject: [PATCH] Removing '/certificates' entry in generate.yml as this causes an incorrect path when generating certificates. The 'setting permissions on key' task fails because the task looks for the haproxy.key in an invalid path. The certificates_dir is defined as '{{ node_config }}/certificates' in the main.yml . The 'Setting permissions on Key' task has a path of '{{ certificates_dir }}/certificates/private/haproxy.key which is incorrect. Removing the 'certificates' in the path corrects this problem and allows the user to successfully create certificates using 'kolla-ansible certificates'. Change-Id: I37b10b994b05d955b6f67c908df1472231a91160 Closes-Bug: 1821805 --- ansible/roles/certificates/tasks/generate.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ansible/roles/certificates/tasks/generate.yml b/ansible/roles/certificates/tasks/generate.yml index 0e7db0c5a9..680cbc3daf 100644 --- a/ansible/roles/certificates/tasks/generate.yml +++ b/ansible/roles/certificates/tasks/generate.yml @@ -23,7 +23,7 @@ - name: Setting permissions on key become: true file: - path: "{{ certificates_dir }}/certificates/private/haproxy.key" + path: "{{ certificates_dir }}/private/haproxy.key" mode: 0600 state: file