Inventory group/host variables: Sort yaml

This was done using yq (
https://mikefarah.gitbook.io/yq/operators/sort-keys )

Doing things this way makes it much easier to see if a variable is set
in a file or if two hosts differ in what variables they set. Hopefully
we can keep things sorted moving forward.

Basically this means just sort a-z anything you add to any host or group
vaiable and it will be in the right place.

Additionally, this enforces 'normal' intent rules for all the variable
files which we should also try and obey. 2 spaces for first level, 3 for
next, etc. When in doubt you can run yq on it.

This should cause NO actual vairable changes, it's all just readability
fixing for humans, ansible parses it exactly the same.

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
This commit is contained in:
Kevin Fenzi 2021-11-16 13:27:57 -08:00
parent f6f29ded92
commit 580cd252c5
769 changed files with 12115 additions and 15787 deletions

View file

@ -1,43 +1,39 @@
---
freezes: true
dns1: 10.3.163.33
dns2: 10.3.163.34
has_ipv4: yes
eth1_ipv4: 10.3.170.153
eth1_ipv4_nm: 24
eth1_ipv4_gw: 10.3.170.254
mgmt_mac: "E8:6A:64:39:19:67"
mgmt_ipv4: "10.3.160.117"
eth1_ipv4_nm: 24
freezes: true
has_ipv4: yes
mac0: 00:1b:21:dc:4e:32
mac1: 50:6b:4b:6a:ea:60
mac2: 50:6b:4b:6a:ea:61
mgmt_ipv4: "10.3.160.117"
mgmt_mac: "E8:6A:64:39:19:67"
network_connections:
- name: eth0
mac: "{{ mac0 }}"
type: ethernet
autoconnect: no
- name: eth1
state: up
type: ethernet
autoconnect: yes
mac: "{{ mac1 }}"
ip:
address:
- "{{ eth1_ipv4 }}/{{ eth1_ipv4_nm }}"
gateway4: "{{ eth1_ipv4_gw }}"
dns:
- "{{ dns1 }}"
- "{{ dns2 }}"
dns_search:
- iad2.fedoraproject.org
- fedoraproject.org
dhcp4: no
auto6: no
- name: eth2
mac: "{{ mac2 }}"
type: ethernet
autoconnect: no
- autoconnect: no
mac: "{{ mac0 }}"
name: eth0
type: ethernet
- autoconnect: yes
ip:
address:
- "{{ eth1_ipv4 }}/{{ eth1_ipv4_nm }}"
auto6: no
dhcp4: no
dns:
- "{{ dns1 }}"
- "{{ dns2 }}"
dns_search:
- iad2.fedoraproject.org
- fedoraproject.org
gateway4: "{{ eth1_ipv4_gw }}"
mac: "{{ mac1 }}"
name: eth1
state: up
type: ethernet
- autoconnect: no
mac: "{{ mac2 }}"
name: eth2
type: ethernet