272b506802
Also place in global vars and do not repeat the kube_*_config_dir and kube_namespace vars for better code maintainability and UX. Signed-off-by: Bogdan Dobrelya <bdobrelia@mirantis.com>
13 lines
502 B
YAML
13 lines
502 B
YAML
- 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]
|