mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-17 08:57:36 -02:30
bootstrap-os: match on os-release ID / VARIANT_ID (#7269)
This fixes deployment with CentOS 8 Streams and make detection more reliable
Signed-off-by: Etienne Champetier <e.champetier@ateme.com>
(cherry picked from commit 95b329b64d)
Conflicts:
roles/bootstrap-os/tasks/main.yml
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
d48a4bbc85
commit
60b405a7b7
@@ -51,20 +51,20 @@
|
||||
# This command should always run, even in check mode
|
||||
check_mode: false
|
||||
when:
|
||||
- '"bionic" in os_release.stdout'
|
||||
- '''UBUNTU_CODENAME=bionic'' in os_release.stdout_lines'
|
||||
|
||||
- name: Change Network Name Resolution configuration
|
||||
raw: sed -i 's/^DNSSEC=yes/DNSSEC=allow-downgrade/g' /etc/systemd/resolved.conf
|
||||
become: true
|
||||
when:
|
||||
- '"bionic" in os_release.stdout'
|
||||
- '''UBUNTU_CODENAME=bionic'' in os_release.stdout_lines'
|
||||
- need_dnssec_allow_downgrade.rc
|
||||
|
||||
- name: Restart systemd-resolved service
|
||||
raw: systemctl restart systemd-resolved
|
||||
become: true
|
||||
when:
|
||||
- '"bionic" in os_release.stdout'
|
||||
- '''UBUNTU_CODENAME=bionic'' in os_release.stdout_lines'
|
||||
- need_dnssec_allow_downgrade.rc
|
||||
|
||||
- name: Install python3
|
||||
|
||||
Reference in New Issue
Block a user