main.yaml 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ---
  2. - name: Set the Nuage plugin openshift directory fact for Atomic hosts
  3. set_fact:
  4. vsp_openshift_dir: /var/usr/share/vsp-openshift
  5. when: openshift.common.is_atomic | bool
  6. - name: Set the Nuage CNI binary directory fact for Atomic hosts
  7. set_fact:
  8. cni_bin_dir: /var/opt/cni/bin/
  9. when: openshift.common.is_atomic | bool
  10. - name: Set the Nuage plugin certs directory fact for Atomic hosts
  11. set_fact:
  12. nuage_plugin_crt_dir: /var/usr/share/vsp-openshift
  13. when: openshift.common.is_atomic | bool
  14. - name: Assure CNI conf dir exists
  15. become: yes
  16. file: path="{{ cni_conf_dir }}" state=directory
  17. - name: Assures Openshift CNI bin dir exists
  18. become: yes
  19. file: path="{{ cni_bin_dir }}" state=directory
  20. - name: Copy the certificates and keys
  21. become: yes
  22. copy: src="/tmp/{{ item }}" dest="{{ vsp_openshift_dir }}/{{ item }}"
  23. with_items:
  24. - ca.crt
  25. - nuage.crt
  26. - nuage.key
  27. - nuage.kubeconfig
  28. - include: certificates.yml
  29. - name: Restart node services
  30. command: /bin/true
  31. notify:
  32. - restart node
  33. ignore_errors: true
  34. - include: iptables.yml
  35. - name: setup firewall
  36. include: firewall.yml
  37. static: yes