mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-23 16:47:47 -02:30
Add support to Ansible 2.9 (#5361)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
7da2083986
commit
b15d41a96a
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: create temporary resolveconf cloud init file
|
||||
command: cp -f /etc/resolv.conf "{{ resolvconffile }}"
|
||||
when: ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
||||
when: ansible_os_family in ["CoreOS", "Coreos", "Container Linux by CoreOS"]
|
||||
|
||||
- name: Add domain/search/nameservers/options to resolv.conf
|
||||
blockinfile:
|
||||
@@ -47,7 +47,7 @@
|
||||
- name: get temporary resolveconf cloud init file content
|
||||
command: cat {{ resolvconffile }}
|
||||
register: cloud_config
|
||||
when: ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
||||
when: ansible_os_family in ["CoreOS", "Coreos", "Container Linux by CoreOS"]
|
||||
|
||||
- name: persist resolvconf cloud init file
|
||||
template:
|
||||
@@ -56,4 +56,4 @@
|
||||
owner: root
|
||||
mode: 0644
|
||||
notify: Preinstall | update resolvconf for Container Linux by CoreOS
|
||||
when: ansible_os_family in ["CoreOS", "Container Linux by CoreOS"]
|
||||
when: ansible_os_family in ["CoreOS", "Coreos", "Container Linux by CoreOS"]
|
||||
|
||||
Reference in New Issue
Block a user