diff options
author | Tim Bielawa <tbielawa@redhat.com> | 2016-10-13 13:51:49 -0700 |
---|---|---|
committer | Tim Bielawa <tbielawa@redhat.com> | 2016-10-20 07:52:10 -0700 |
commit | 9075e50ca05037039fc0bfb0742aaf5f5f4ecafb (patch) | |
tree | 679b78411e299b2cb37efe1f0460fc33832ed482 /roles/openshift_certificate_expiry/tasks | |
parent | 314da6ffb37c88ca424b927979bae3219251ed5b (diff) | |
download | openshift-9075e50ca05037039fc0bfb0742aaf5f5f4ecafb.tar.gz openshift-9075e50ca05037039fc0bfb0742aaf5f5f4ecafb.tar.bz2 openshift-9075e50ca05037039fc0bfb0742aaf5f5f4ecafb.tar.xz openshift-9075e50ca05037039fc0bfb0742aaf5f5f4ecafb.zip |
Make the json template filter-driven.
Diffstat (limited to 'roles/openshift_certificate_expiry/tasks')
-rw-r--r-- | roles/openshift_certificate_expiry/tasks/main.yml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/roles/openshift_certificate_expiry/tasks/main.yml b/roles/openshift_certificate_expiry/tasks/main.yml index b78209055..139d5de6e 100644 --- a/roles/openshift_certificate_expiry/tasks/main.yml +++ b/roles/openshift_certificate_expiry/tasks/main.yml @@ -15,7 +15,12 @@ delegate_to: localhost when: "{{ openshift_certificate_expiry_generate_html_report|bool }}" -- name: Generate expiration results JSON +- name: Generate the result JSON string + run_once: yes + set_fact: json_result_string="{{ hostvars|oo_cert_expiry_results_to_json(play_hosts) }}" + when: "{{ openshift_certificate_expiry_save_json_results|bool }}" + +- name: Generate results JSON file become: no run_once: yes template: |