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

@ -2,36 +2,32 @@
datacenter: iad2
dns1: 10.3.163.33
dns2: 10.3.163.34
has_ipv4: yes
eth0_ipv4: 10.3.169.44
eth0_ipv4_nm: 24
eth0_ipv4_gw: 10.3.169.254
eth0_ipv4_nm: 24
has_ipv4: yes
has_ipv6: no
mac0: f8:ca:b8:f7:2d:87
mac1: f8:ca:b8:f7:2d:8a
network_connections:
- name: eth0
mac: "{{ mac0 }}"
state: up
type: ethernet
ip:
address:
- "{{ eth0_ipv4 }}/{{ eth0_ipv4_nm }}"
gateway4: "{{ eth0_ipv4_gw }}"
dns:
- "{{ dns1 }}"
- "{{ dns2 }}"
dns_search:
- iad2.fedoraproject.org
- fedoraproject.org
dhcp4: no
auto6: no
- name: eth1
mac: "{{ mac1 }}"
state: down
type: ethernet
autoconnect: yes
- ip:
address:
- "{{ eth0_ipv4 }}/{{ eth0_ipv4_nm }}"
auto6: no
dhcp4: no
dns:
- "{{ dns1 }}"
- "{{ dns2 }}"
dns_search:
- iad2.fedoraproject.org
- fedoraproject.org
gateway4: "{{ eth0_ipv4_gw }}"
mac: "{{ mac0 }}"
name: eth0
state: up
type: ethernet
- autoconnect: yes
mac: "{{ mac1 }}"
name: eth1
state: down
type: ethernet