You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
615 B

  1. ---
  2. - set_fact:
  3. calico_cert_dir: "{{ canal_cert_dir }}"
  4. when: kube_network_plugin == 'canal'
  5. tags: facts
  6. - name: Write calico-policy-controller yaml
  7. template: src=calico-policy-controller.yml.j2 dest={{kube_config_dir}}/calico-policy-controller.yml
  8. when: inventory_hostname == groups['kube-master'][0]
  9. - name: Start of Calico policy controller
  10. kube:
  11. name: "calico-policy-controller"
  12. kubectl: "{{bin_dir}}/kubectl"
  13. filename: "{{kube_config_dir}}/calico-policy-controller.yml"
  14. namespace: "{{system_namespace}}"
  15. resource: "rs"
  16. when: inventory_hostname == groups['kube-master'][0]