c75f394707
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>
17 lines
465 B
YAML
17 lines
465 B
YAML
- name: Create canal ConfigMap
|
|
run_once: true
|
|
kube:
|
|
name: "canal-config"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
filename: "{{kube_config_dir}}/canal-config.yaml"
|
|
resource: "configmap"
|
|
namespace: "{{system_namespace}}"
|
|
|
|
- name: Start flannel and calico-node
|
|
run_once: true
|
|
kube:
|
|
name: "canal-node"
|
|
kubectl: "{{bin_dir}}/kubectl"
|
|
filename: "{{kube_config_dir}}/canal-node.yaml"
|
|
resource: "ds"
|
|
namespace: "{{system_namespace}}"
|