install_support.yaml 934 B

12345678910111213141516171819202122232425262728293031
  1. ---
  2. - name: Check control node to see if htpasswd is installed
  3. local_action: command which htpasswd
  4. register: htpasswd_check
  5. failed_when: no
  6. changed_when: no
  7. become: false
  8. - fail: msg="'htpasswd' is unavailable. Please install httpd-tools on the control node"
  9. when: htpasswd_check.rc == 1
  10. - name: Check control node to see if keytool is installed
  11. local_action: command which keytool
  12. register: keytool_check
  13. failed_when: no
  14. changed_when: no
  15. become: false
  16. - fail: msg="'keytool' is unavailable. Please install java-1.8.0-openjdk-headless on the control node"
  17. when: keytool_check.rc == 1
  18. - name: Set metrics server namespace
  19. oc_project:
  20. state: present
  21. name: "{{ openshift_metrics_server_project }}"
  22. node_selector: ""
  23. - include_tasks: generate_certificates.yaml
  24. - include_tasks: generate_serviceaccounts.yaml
  25. - include_tasks: generate_services.yaml
  26. - include_tasks: generate_rolebindings.yaml