mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-05-19 14:57:43 -02:30
remove deprecated parameters of blockinfile module (#3581)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
---
|
||||
- name: Hosts | populate inventory into hosts file
|
||||
blockinfile:
|
||||
dest: /etc/hosts
|
||||
path: /etc/hosts
|
||||
block: |-
|
||||
{% for item in (groups['k8s-cluster'] + groups['etcd'] + groups['calico-rr']|default([]))|unique -%}{{ hostvars[item]['access_ip'] | default(hostvars[item]['ip'] | default(hostvars[item]['ansible_default_ipv4']['address'])) }}{% if (item != hostvars[item]['ansible_hostname']) %} {{ hostvars[item]['ansible_hostname'] }}.{{ dns_domain }} {{ hostvars[item]['ansible_hostname'] }}{% endif %} {{ item }} {{ item }}.{{ dns_domain }}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user