mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
Add iproute(2) package checking (#11816)
Signed-off-by: ekko <lihai.tu@daocloud.io>
This commit is contained in:
@@ -14,3 +14,14 @@
|
|||||||
enabled: true
|
enabled: true
|
||||||
repo_gpgcheck: false
|
repo_gpgcheck: false
|
||||||
when: epel_enabled
|
when: epel_enabled
|
||||||
|
|
||||||
|
# iproute is required for networking related facts gathering
|
||||||
|
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
|
||||||
|
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
|
||||||
|
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
|
||||||
|
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
|
||||||
|
- name: Ensure iproute is installed
|
||||||
|
package:
|
||||||
|
name: iproute
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|||||||
@@ -116,3 +116,14 @@
|
|||||||
name: "{{ ((ansible_distribution_major_version | int) < 8) | ternary('libselinux-python', 'python3-libselinux') }}"
|
name: "{{ ((ansible_distribution_major_version | int) < 8) | ternary('libselinux-python', 'python3-libselinux') }}"
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
# iproute is required for networking related facts gathering
|
||||||
|
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
|
||||||
|
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
|
||||||
|
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
|
||||||
|
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
|
||||||
|
- name: Ensure iproute is installed
|
||||||
|
package:
|
||||||
|
name: iproute
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|||||||
@@ -14,3 +14,14 @@
|
|||||||
daemon_reload: true
|
daemon_reload: true
|
||||||
state: started
|
state: started
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
# iproute2 is required for networking related facts gathering
|
||||||
|
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
|
||||||
|
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
|
||||||
|
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
|
||||||
|
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
|
||||||
|
- name: Ensure iproute2 is installed
|
||||||
|
package:
|
||||||
|
name: iproute2
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|||||||
@@ -62,3 +62,14 @@
|
|||||||
- '"changed its" in bootstrap_update_apt_result.stdout'
|
- '"changed its" in bootstrap_update_apt_result.stdout'
|
||||||
- '"value from" in bootstrap_update_apt_result.stdout'
|
- '"value from" in bootstrap_update_apt_result.stdout'
|
||||||
ignore_errors: true
|
ignore_errors: true
|
||||||
|
|
||||||
|
# iproute2 is required for networking related facts gathering
|
||||||
|
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
|
||||||
|
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
|
||||||
|
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
|
||||||
|
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
|
||||||
|
- name: Ensure iproute2 is installed
|
||||||
|
package:
|
||||||
|
name: iproute2
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|||||||
@@ -28,3 +28,14 @@
|
|||||||
become: true
|
become: true
|
||||||
when:
|
when:
|
||||||
- need_bootstrap.rc != 0
|
- need_bootstrap.rc != 0
|
||||||
|
|
||||||
|
# iproute is required for networking related facts gathering
|
||||||
|
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
|
||||||
|
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
|
||||||
|
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
|
||||||
|
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
|
||||||
|
- name: Ensure iproute is installed
|
||||||
|
package:
|
||||||
|
name: iproute
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|||||||
@@ -83,3 +83,15 @@
|
|||||||
- apparmor-parser
|
- apparmor-parser
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
# iproute2 is required for networking related facts gathering
|
||||||
|
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
|
||||||
|
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
|
||||||
|
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
|
||||||
|
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
|
||||||
|
- name: Ensure iproute2 is installed
|
||||||
|
community.general.zypper:
|
||||||
|
name: iproute2
|
||||||
|
state: present
|
||||||
|
update_cache: true
|
||||||
|
become: true
|
||||||
|
|||||||
@@ -100,3 +100,14 @@
|
|||||||
name: "{{ ((ansible_distribution_major_version | int) < 8) | ternary('libselinux-python', 'python3-libselinux') }}"
|
name: "{{ ((ansible_distribution_major_version | int) < 8) | ternary('libselinux-python', 'python3-libselinux') }}"
|
||||||
state: present
|
state: present
|
||||||
become: true
|
become: true
|
||||||
|
|
||||||
|
# iproute is required for networking related facts gathering
|
||||||
|
# See https://docs.ansible.com/ansible/latest/playbook_guide/playbooks_vars_facts.html#package-requirements-for-fact-gathering
|
||||||
|
# Note: It is not recommended way, but since the tasks execution order, put it here is the simplest way so far. We can move it to a proper place later.
|
||||||
|
# TODO: move this to roles/kubernetes/preinstall/vars/main.yml -> pkgs variables
|
||||||
|
# Currently not possible because the collect the network facts before that step, needs reordering of the exec flow.
|
||||||
|
- name: Ensure iproute is installed
|
||||||
|
package:
|
||||||
|
name: iproute
|
||||||
|
state: present
|
||||||
|
become: true
|
||||||
|
|||||||
Reference in New Issue
Block a user