main.yaml 970 B

12345678910111213141516171819202122232425262728293031323334
  1. ---
  2. - name: Create directory /usr/share/nuage-openshift-monitor
  3. become: yes
  4. file: path=/usr/share/nuage-openshift-monitor state=directory
  5. - name: Create the log directory
  6. become: yes
  7. file: path={{ nuage_mon_rest_server_logdir }} state=directory
  8. - name: Install Nuage Openshift Monitor
  9. become: yes
  10. yum: name={{ nuage_openshift_rpm }} state=present
  11. - include: serviceaccount.yml
  12. - name: Download the certs and keys
  13. become: yes
  14. fetch: src={{ cert_output_dir }}/{{ item }} dest=/tmp/{{ item }} flat=yes
  15. with_items:
  16. - ca.crt
  17. - nuage.crt
  18. - nuage.key
  19. - nuage.kubeconfig
  20. - include: certificates.yml
  21. - name: Create nuage-openshift-monitor.yaml
  22. become: yes
  23. template: src=nuage-openshift-monitor.j2 dest=/usr/share/nuage-openshift-monitor/nuage-openshift-monitor.yaml owner=root mode=0644
  24. notify:
  25. - restart master
  26. - restart master api
  27. - restart master controllers
  28. - restart nuage-openshift-monitor