check-cert-expiry.yaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # ---
  2. # # This must be evaluated after cluster_hosts.yml has been evaluated on
  3. # # 'localhost' to generate l_oo_all_hosts and then subsequently
  4. # # evaluated again on the generated hosts group (l_oo_all_hosts).
  5. # - include: evaluate_groups.yml
  6. # tags:
  7. # - always
  8. # # Initialize cluster facts for oo_all_hosts using the openshift_facts
  9. # # role followed by the 'common' role
  10. # - include: initialize_facts.yml
  11. # tags:
  12. # - always
  13. # # Get the version to install from the first master, then synchronize
  14. # # that variable across all in oo_all_hosts
  15. # - include: initialize_openshift_version.yml
  16. # tags:
  17. # - always
  18. # # Earlier 'initialize_facts' included the openshift_facts role and
  19. # # used the openshift_facts module with the 'role' parameter set to
  20. # # 'common'. Now we're applying the openshift_facts role AGAIN but just
  21. # # to the subset of oo_all_hosts which require configuring.
  22. # - name: Load openshift_facts
  23. # hosts: oo_etcd_to_config:oo_masters_to_config:oo_nodes_to_config
  24. # roles:
  25. # - openshift_facts
  26. - hosts: all
  27. become: yes
  28. gather_facts: no
  29. tasks:
  30. - name: Check cert expirys on host
  31. openshift_cert_expiry:
  32. warning_days: 1500
  33. register: check_results
  34. - name: Generate html
  35. become: no
  36. run_once: yes
  37. template:
  38. src: templates/cert-expiry-table.html.j2
  39. dest: /tmp/cert-table.html
  40. delegate_to: localhost