main.yaml 642 B

123456789101112131415161718192021222324252627282930
  1. ---
  2. - name: Assure CNI conf dir exists
  3. become: yes
  4. file: path="{{ cni_conf_dir }}" state=directory
  5. - name: Assures Openshift CNI bin dir exists
  6. become: yes
  7. file: path="{{ cni_bin_dir }}" state=directory
  8. - name: Copy the certificates and keys
  9. become: yes
  10. copy: src="/tmp/{{ item }}" dest="{{ vsp_openshift_dir }}/{{ item }}"
  11. with_items:
  12. - ca.crt
  13. - nuage.crt
  14. - nuage.key
  15. - nuage.kubeconfig
  16. - include_tasks: certificates.yml
  17. - name: Restart node services
  18. command: /bin/true
  19. notify:
  20. - restart node
  21. ignore_errors: true
  22. - include_tasks: iptables.yml
  23. - name: setup firewall
  24. import_tasks: firewall.yml