|
@ -123,7 +123,7 @@ |
|
|
when: inventory_hostname in groups['kube-master'] and |
|
|
when: inventory_hostname in groups['kube-master'] and |
|
|
inventory_hostname != groups['kube-master'][0] and |
|
|
inventory_hostname != groups['kube-master'][0] and |
|
|
(not item in kubecert_node.files | map(attribute='path') | map("basename") | list or |
|
|
(not item in kubecert_node.files | map(attribute='path') | map("basename") | list or |
|
|
kubecert_node.files | selectattr("path", "equalto", "{{ kube_cert_dir }}/{{ item }}") | map(attribute="checksum")|first|default('') != kubecert_master.files | selectattr("path", "equalto", "{{ kube_cert_dir }}/{{ item }}") | map(attribute="checksum")|first|default('')) |
|
|
|
|
|
|
|
|
kubecert_node.files | selectattr("path", "equalto", '%s/%s'|format(kube_cert_dir, item)) | map(attribute="checksum")|first|default('') != kubecert_master.files | selectattr("path", "equalto", '%s/%s'|format(kube_cert_dir, item)) | map(attribute="checksum")|first|default('')) |
|
|
with_items: |
|
|
with_items: |
|
|
- "{{ my_master_certs + all_node_certs }}" |
|
|
- "{{ my_master_certs + all_node_certs }}" |
|
|
|
|
|
|
|
@ -133,7 +133,7 @@ |
|
|
when: inventory_hostname in groups['kube-node'] and |
|
|
when: inventory_hostname in groups['kube-node'] and |
|
|
inventory_hostname != groups['kube-master'][0] and |
|
|
inventory_hostname != groups['kube-master'][0] and |
|
|
(not item in kubecert_node.files | map(attribute='path') | map("basename") | list or |
|
|
(not item in kubecert_node.files | map(attribute='path') | map("basename") | list or |
|
|
kubecert_node.files | selectattr("path", "equalto", "{{ kube_cert_dir }}/{{ item }}") | map(attribute="checksum")|first|default('') != kubecert_master.files | selectattr("path", "equalto", "{{ kube_cert_dir }}/{{ item }}") | map(attribute="checksum")|first|default('')) |
|
|
|
|
|
|
|
|
kubecert_node.files | selectattr("path", "equalto", '%s/%s'|format(kube_cert_dir, item)) | map(attribute="checksum")|first|default('') != kubecert_master.files | selectattr("path", "equalto", '%s/%s'|format(kube_cert_dir, item)) | map(attribute="checksum")|first|default('')) |
|
|
with_items: |
|
|
with_items: |
|
|
- "{{ my_node_certs }}" |
|
|
- "{{ my_node_certs }}" |
|
|
|
|
|
|
|
|