ca9ea097df
Migrate older inline= syntax to pure yml syntax for module args as to be consistant with most of the rest of the tasks Cleanup some spacing in various files Rename some files named yaml to yml for consistancy
20 lines
627 B
YAML
20 lines
627 B
YAML
---
|
|
- set_fact:
|
|
calico_cert_dir: "{{ canal_cert_dir }}"
|
|
when: kube_network_plugin == 'canal'
|
|
tags: facts
|
|
|
|
- name: Write calico-policy-controller yaml
|
|
template:
|
|
src: calico-policy-controller.yml.j2
|
|
dest: "{{kube_config_dir}}/calico-policy-controller.yml"
|
|
when: inventory_hostname == groups['kube-master'][0]
|
|
|
|
- name: Start of Calico policy controller
|
|
kube:
|
|
name: "calico-policy-controller"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
filename: "{{kube_config_dir}}/calico-policy-controller.yml"
|
|
namespace: "{{system_namespace}}"
|
|
resource: "rs"
|
|
when: inventory_hostname == groups['kube-master'][0]
|