summaryrefslogtreecommitdiffstats
path: root/playbooks/byo/openshift-checks/certificate_expiry/html_and_json_timestamp.yaml
blob: 2189455b7caebe133e6008ffc42cdd1c9d6779e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
---
# Generate timestamped HTML and JSON reports in /var/lib/certcheck

- name: Check cert expirys
  hosts: nodes:masters:etcd
  become: yes
  gather_facts: no
  vars:
    openshift_certificate_expiry_generate_html_report: yes
    openshift_certificate_expiry_save_json_results: yes
    openshift_certificate_expiry_show_all: yes
    timestamp: "{{ lookup('pipe', 'date +%Y%m%d') }}"
    openshift_certificate_expiry_html_report_path: "/var/lib/certcheck/{{ timestamp }}-cert-expiry-report.html"
    openshift_certificate_expiry_json_results_path: "/var/lib/certcheck/{{ timestamp }}-cert-expiry-report.json"
  roles:
    - role: openshift_certificate_expiry