Avoid that some read-only tasks cause an ansible-change (#1910)

This commit is contained in:
Günther Grill
2017-11-06 14:51:07 +01:00
committed by Matthew Mosesohn
parent ad0cd6939a
commit 0d55ed3600
5 changed files with 7 additions and 0 deletions

View File

@@ -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"