summaryrefslogtreecommitdiffstats
path: root/roles/openshift_certificate_expiry/tasks
diff options
context:
space:
mode:
authorTim Bielawa <tbielawa@redhat.com>2016-10-07 09:55:13 -0700
committerTim Bielawa <tbielawa@redhat.com>2016-10-20 07:49:40 -0700
commita22e8daf1f7c93469023239f442f19608ffbc970 (patch)
tree0fa7c6e91d471c0833d58ab95baa6dec7ee657f2 /roles/openshift_certificate_expiry/tasks
parent4273b21105dd11f52de354b4777d33e4296ba7e0 (diff)
downloadopenshift-a22e8daf1f7c93469023239f442f19608ffbc970.tar.gz
openshift-a22e8daf1f7c93469023239f442f19608ffbc970.tar.bz2
openshift-a22e8daf1f7c93469023239f442f19608ffbc970.tar.xz
openshift-a22e8daf1f7c93469023239f442f19608ffbc970.zip
Refactor into a role
Diffstat (limited to 'roles/openshift_certificate_expiry/tasks')
-rw-r--r--roles/openshift_certificate_expiry/tasks/main.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/roles/openshift_certificate_expiry/tasks/main.yml b/roles/openshift_certificate_expiry/tasks/main.yml
new file mode 100644
index 000000000..def7d1284
--- /dev/null
+++ b/roles/openshift_certificate_expiry/tasks/main.yml
@@ -0,0 +1,23 @@
+---
+- name: Check cert expirys on host
+ openshift_cert_expiry:
+ warning_days: 1500
+ register: check_results
+
+- name: Generate html
+ become: no
+ run_once: yes
+ template:
+ src: cert-expiry-table.html.j2
+ dest: /tmp/cert-table.html
+ delegate_to: localhost
+ when: generate_report
+
+- name: Generate JSON
+ become: no
+ run_once: yes
+ template:
+ src: save_json_results.j2
+ dest: /tmp/cert-expiry-results.json
+ delegate_to: localhost
+ when: save_json_results