Noggin: better way to store the IPA CA cert, maybe?

Signed-off-by: Aurélien Bompard <aurelien@bompard.org>
This commit is contained in:
Aurélien Bompard 2020-08-19 18:02:20 +02:00
parent 7bae92a161
commit 9378371511
No known key found for this signature in database
GPG key ID: 31584CFEB9BF64AD
2 changed files with 5 additions and 2 deletions

View file

@ -15,7 +15,10 @@
slurp:
src: /etc/ipa/ca.crt
delegate_to: "{{ ipa_server }}"
register: ipa_ca_cert
register: ipa_ca_cert_var
- name: Register the IPA CA cert in a fact
set_fact:
ipa_ca_cert: {{ ipa_ca_cert_var.content }}
roles:
# RabbitMQ is not redeployed in staging yet

View file

@ -44,4 +44,4 @@ items:
default.conf: |-
{{ load_file('ipa-default.conf') | indent(6) }}
ca.crt: |-
{{ ipa_ca_cert['content'] | indent(6) }}
{{ ipa_ca_cert | indent(6) }}