Add bin_dir to PATH environment. (#6764)

This commit is contained in:
petruha 2020-09-29 15:35:27 +02:00 committed by GitHub
parent 109391031b
commit 7a730d42dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -25,6 +25,8 @@
until: kubeadm_upgrade.rc == 0 until: kubeadm_upgrade.rc == 0
when: inventory_hostname == groups['kube-master']|first when: inventory_hostname == groups['kube-master']|first
failed_when: kubeadm_upgrade.rc != 0 and "field is immutable" not in kubeadm_upgrade.stderr failed_when: kubeadm_upgrade.rc != 0 and "field is immutable" not in kubeadm_upgrade.stderr
environment:
PATH: "{{ bin_dir }}:{{ ansible_env.PATH }}"
notify: Master | restart kubelet notify: Master | restart kubelet
- name: kubeadm | Upgrade other masters - name: kubeadm | Upgrade other masters
@ -42,6 +44,8 @@
failed_when: failed_when:
- kubeadm_upgrade.rc != 0 - kubeadm_upgrade.rc != 0
- '"field is immutable" not in kubeadm_upgrade.stderr' - '"field is immutable" not in kubeadm_upgrade.stderr'
environment:
PATH: "{{ bin_dir }}:{{ ansible_env.PATH }}"
notify: Master | restart kubelet notify: Master | restart kubelet
- name: kubeadm | clean kubectl cache to refresh api types - name: kubeadm | clean kubectl cache to refresh api types