Skip to content

Commit

Permalink
Addressing py27-yamllint
Browse files Browse the repository at this point in the history
  • Loading branch information
etsauer committed Apr 3, 2017
1 parent 6c4941a commit 2f3158b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions roles/openshift_logging/tasks/procure_server_certs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2f3158b

Please sign in to comment.