summaryrefslogtreecommitdiffstats
path: root/roles/openshift_certificate_expiry/tasks
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2016-10-07 12:12:45 -0700
committerTim Bielawa <tbielawa@redhat.com>2016-10-20 07:49:40 -0700
commit3e8279ace30affb18d7070a47a13b521995960d5 (patch)
tree09ea285d722a27868ec2361f6764e62d73da2445 /roles/openshift_certificate_expiry/tasks
parenta22e8daf1f7c93469023239f442f19608ffbc970 (diff)
downloadopenshift-3e8279ace30affb18d7070a47a13b521995960d5.tar.gz
openshift-3e8279ace30affb18d7070a47a13b521995960d5.tar.bz2
openshift-3e8279ace30affb18d7070a47a13b521995960d5.tar.xz
openshift-3e8279ace30affb18d7070a47a13b521995960d5.zip
Fix playbooks, update readme, update default vars
Fix 'make ci' system Add examples
Diffstat (limited to 'roles/openshift_certificate_expiry/tasks')
-rw-r--r--roles/openshift_certificate_expiry/tasks/main.yml16
1 files changed, 9 insertions, 7 deletions
diff --git a/roles/openshift_certificate_expiry/tasks/main.yml b/roles/openshift_certificate_expiry/tasks/main.yml
index def7d1284..88bc02efe 100644
--- a/roles/openshift_certificate_expiry/tasks/main.yml
+++ b/roles/openshift_certificate_expiry/tasks/main.yml
@@ -1,23 +1,25 @@
---
- name: Check cert expirys on host
openshift_cert_expiry:
- warning_days: 1500
+ warning_days: "{{ warning_days|int }}"
+ config_base: "{{ config_base }}"
+ show_all: "{{ show_all|bool }}"
register: check_results
-- name: Generate html
+- name: Generate expiration report HTML
become: no
run_once: yes
template:
src: cert-expiry-table.html.j2
- dest: /tmp/cert-table.html
+ dest: "{{ html_report_path }}"
delegate_to: localhost
- when: generate_report
+ when: "{{ generate_html_report|bool }}"
-- name: Generate JSON
+- name: Generate expiration results JSON
become: no
run_once: yes
template:
src: save_json_results.j2
- dest: /tmp/cert-expiry-results.json
+ dest: "{{ json_results_path }}"
delegate_to: localhost
- when: save_json_results
+ when: "{{ save_json_results|bool }}"