|
@ -78,7 +78,6 @@ |
|
|
register: calico_conf |
|
|
register: calico_conf |
|
|
delegate_to: "{{groups['etcd'][0]}}" |
|
|
delegate_to: "{{groups['etcd'][0]}}" |
|
|
run_once: true |
|
|
run_once: true |
|
|
tags: facts |
|
|
|
|
|
|
|
|
|
|
|
- name: Calico | Configure calico network pool |
|
|
- name: Calico | Configure calico network pool |
|
|
shell: > |
|
|
shell: > |
|
@ -141,7 +140,6 @@ |
|
|
- set_fact: |
|
|
- set_fact: |
|
|
calico_pools: "{{ calico_pools_raw.stdout | from_json }}" |
|
|
calico_pools: "{{ calico_pools_raw.stdout | from_json }}" |
|
|
run_once: true |
|
|
run_once: true |
|
|
tags: facts |
|
|
|
|
|
|
|
|
|
|
|
- name: Calico | Check if calico pool is properly configured |
|
|
- name: Calico | Check if calico pool is properly configured |
|
|
fail: |
|
|
fail: |
|
@ -150,7 +148,6 @@ |
|
|
when: ( calico_pools['node']['nodes'] | length > 1 ) or |
|
|
when: ( calico_pools['node']['nodes'] | length > 1 ) or |
|
|
( not calico_pools['node']['nodes'][0]['key'] | search(".*{{ kube_pods_subnet | ipaddr('network') }}.*") ) |
|
|
( not calico_pools['node']['nodes'][0]['key'] | search(".*{{ kube_pods_subnet | ipaddr('network') }}.*") ) |
|
|
run_once: true |
|
|
run_once: true |
|
|
tags: facts |
|
|
|
|
|
|
|
|
|
|
|
- name: Calico | Set global as_num |
|
|
- name: Calico | Set global as_num |
|
|
command: "{{ bin_dir}}/calicoctl config set asNumber {{ global_as_num }}" |
|
|
command: "{{ bin_dir}}/calicoctl config set asNumber {{ global_as_num }}" |
|
|