Reduce log spam of verbose tasks (#3806)
Added a loop_control label to a few tasks that flood our logs.
This commit is contained in:
parent
9051aa5296
commit
145687a48e
6 changed files with 12 additions and 0 deletions
|
@ -107,6 +107,8 @@
|
|||
- inventory_hostname in groups['etcd']
|
||||
- sync_certs|default(false)
|
||||
- inventory_hostname != groups['etcd'][0]
|
||||
loop_control:
|
||||
label: "{{ item.item }}"
|
||||
|
||||
- set_fact:
|
||||
my_etcd_node_certs: ['ca.pem',
|
||||
|
|
|
@ -61,6 +61,8 @@
|
|||
- dnsmasq
|
||||
- coredns
|
||||
- kubedns
|
||||
loop_control:
|
||||
label: "{{ item.item.file }}"
|
||||
|
||||
- name: Kubernetes Apps | Netchecker
|
||||
import_tasks: tasks/netchecker.yml
|
||||
|
|
|
@ -50,6 +50,8 @@
|
|||
when:
|
||||
- inventory_hostname == groups['kube-master'][0]
|
||||
- not item is skipped
|
||||
loop_control:
|
||||
label: "{{ item.item.file }}"
|
||||
|
||||
- name: Kubernetes Apps | Add ClusterRoleBinding to admit nodes
|
||||
template:
|
||||
|
|
|
@ -60,3 +60,5 @@
|
|||
state: "latest"
|
||||
with_items: "{{ local_volume_provisioner_manifests.results }}"
|
||||
when: inventory_hostname == groups['kube-master'][0]
|
||||
loop_control:
|
||||
label: "{{ item.item.file }}"
|
|
@ -11,6 +11,8 @@
|
|||
- "{{ calico_node_manifests.results }}"
|
||||
when:
|
||||
- inventory_hostname == groups['kube-master'][0] and not item is skipped
|
||||
loop_control:
|
||||
label: "{{ item.item.file }}"
|
||||
|
||||
- name: "calico upgrade complete"
|
||||
shell: "{{ bin_dir }}/calico-upgrade complete --no-prompts --apiconfigv1 /etc/calico/etcdv2.yml --apiconfigv3 /etc/calico/etcdv3.yml"
|
||||
|
|
|
@ -35,3 +35,5 @@
|
|||
when:
|
||||
- inventory_hostname == groups['kube-master'][0]
|
||||
- not item is skipped
|
||||
loop_control:
|
||||
label: "{{ item.item.file }}"
|
Loading…
Reference in a new issue