mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-09 11:47:47 +03:00
project: resolve ansible-lint key-order rule (#10314)
Signed-off-by: Arthur Outhenin-Chalandre <arthur.outhenin-chalandre@proton.ch>
This commit is contained in:
committed by
GitHub
parent
2a7c9d27b2
commit
d21bfb84ad
@@ -1,5 +1,6 @@
|
||||
---
|
||||
- name: Hosts | update inventory in hosts file
|
||||
when: populate_inventory_to_hosts_file
|
||||
block:
|
||||
- name: Hosts | create list from inventory
|
||||
set_fact:
|
||||
@@ -26,7 +27,6 @@
|
||||
unsafe_writes: yes
|
||||
marker: "# Ansible inventory hosts {mark}"
|
||||
mode: 0644
|
||||
when: populate_inventory_to_hosts_file
|
||||
|
||||
- name: Hosts | populate kubernetes loadbalancer address into hosts file
|
||||
lineinfile:
|
||||
@@ -42,6 +42,7 @@
|
||||
- loadbalancer_apiserver.address is defined
|
||||
|
||||
- name: Hosts | Update localhost entries in hosts file
|
||||
when: populate_localhost_entries_to_hosts_file
|
||||
block:
|
||||
- name: Hosts | Retrieve hosts file content
|
||||
slurp:
|
||||
@@ -74,7 +75,6 @@
|
||||
backup: yes
|
||||
unsafe_writes: yes
|
||||
loop: "{{ etc_hosts_localhosts_dict_target | default({}) | dict2items }}"
|
||||
when: populate_localhost_entries_to_hosts_file
|
||||
|
||||
# gather facts to update ansible_fqdn
|
||||
- name: Update facts
|
||||
|
||||
Reference in New Issue
Block a user