mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-17 08:57:36 -02:30
* CI: add no_proxy regression test * proxy: Fix the no_proxy variable Since 2.29, probably due to a change in ansible templating, the no_proxy variable is rendered as an array of character rather than a string. This results in broken cluster in some case. Eliminate the custom jinja looping to use filters and list flatteing + join instead. Also simplify some things (no separate tasks file, just use `run_once` instead of delegating to localhost)
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
---
|
|
- name: Bootstrap hosts for Ansible
|
|
hosts: k8s_cluster:etcd:calico_rr
|
|
strategy: linear
|
|
any_errors_fatal: "{{ any_errors_fatal | default(true) }}"
|
|
gather_facts: false
|
|
environment: "{{ proxy_disable_env }}"
|
|
roles:
|
|
- { role: bootstrap_os, tags: bootstrap_os}
|
|
|
|
- name: Gather facts
|
|
hosts: k8s_cluster:etcd:calico_rr
|
|
gather_facts: false
|
|
tags: always
|
|
tasks:
|
|
- name: Gather and compute network facts
|
|
import_role:
|
|
name: network_facts
|
|
tags:
|
|
- always
|
|
- name: Gather minimal facts
|
|
setup:
|
|
gather_subset: '!all'
|
|
|
|
# filter match the following variables:
|
|
# ansible_default_ipv4
|
|
# ansible_default_ipv6
|
|
# ansible_all_ipv4_addresses
|
|
# ansible_all_ipv6_addresses
|
|
- name: Gather necessary facts (network)
|
|
setup:
|
|
gather_subset: '!all,!min,network'
|
|
filter: "ansible_*_ipv[46]*"
|
|
|
|
# filter match the following variables:
|
|
# ansible_memtotal_mb
|
|
# ansible_swaptotal_mb
|
|
- name: Gather necessary facts (hardware)
|
|
setup:
|
|
gather_subset: '!all,!min,hardware'
|
|
filter: "ansible_*total_mb"
|