mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-02-21 21:20:15 -03:30
Avoid that some read-only tasks cause an ansible-change (#1910)
This commit is contained in:
committed by
Matthew Mosesohn
parent
ad0cd6939a
commit
0d55ed3600
@@ -80,6 +80,7 @@
|
||||
- name: "Gen_certs | Get certificate serials on kube masters"
|
||||
shell: "openssl x509 -in {{ kube_cert_dir }}/{{ item }} -noout -serial | cut -d= -f2"
|
||||
register: "master_certificate_serials"
|
||||
changed_when: false
|
||||
with_items:
|
||||
- "admin-{{ inventory_hostname }}.pem"
|
||||
- "apiserver.pem"
|
||||
@@ -98,6 +99,7 @@
|
||||
- name: "Gen_certs | Get certificate serials on kube nodes"
|
||||
shell: "openssl x509 -in {{ kube_cert_dir }}/{{ item }} -noout -serial | cut -d= -f2"
|
||||
register: "node_certificate_serials"
|
||||
changed_when: false
|
||||
with_items:
|
||||
- "node-{{ inventory_hostname }}.pem"
|
||||
- "kube-proxy-{{ inventory_hostname }}.pem"
|
||||
|
||||
Reference in New Issue
Block a user