From 2f3158bbc8f1264f6fe8d3be5d111d4c8576d79f Mon Sep 17 00:00:00 2001 From: Eric Sauer Date: Mon, 3 Apr 2017 15:37:22 -0400 Subject: Addressing py27-yamllint --- roles/openshift_logging/tasks/procure_server_certs.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/roles/openshift_logging/tasks/procure_server_certs.yaml b/roles/openshift_logging/tasks/procure_server_certs.yaml index 19e03aba4..7ab140357 100644 --- a/roles/openshift_logging/tasks/procure_server_certs.yaml +++ b/roles/openshift_logging/tasks/procure_server_certs.yaml @@ -19,7 +19,7 @@ - name: Trying to discover the server key variable name for {{ cert_info.procure_component }} set_fact: procure_component_key={{ lookup('env', '{{cert_info.procure_component}}' + '_key') }} - when: + when: - cert_info.hostnames is undefined - cert_info[ cert_info.procure_component + '_crt' ] is defined - cert_info[ cert_info.procure_component + '_key' ] is defined @@ -33,9 +33,9 @@ --signer-serial={{generated_certs_dir}}/ca.serial.txt check_mode: no when: - - cert_info.hostnames is defined - - not component_key_file.stat.exists - - not component_cert_file.stat.exists + - cert_info.hostnames is defined + - not component_key_file.stat.exists + - not component_cert_file.stat.exists - name: Copying server key for {{ cert_info.procure_component }} to generated certs directory copy: content="{{procure_component_key}}" dest={{generated_certs_dir}}/{{cert_info.procure_component}}.key -- cgit v1.2.3