fix(config): enable dictionary merge for scoped overrides
This commit is contained in:
2
ansible.cfg
Normal file
2
ansible.cfg
Normal file
@@ -0,0 +1,2 @@
|
||||
[defaults]
|
||||
hash_behaviour = merge
|
||||
@@ -3,6 +3,7 @@ all:
|
||||
vars:
|
||||
hypervisor:
|
||||
type: "none"
|
||||
system:
|
||||
filesystem: "ext4"
|
||||
hosts:
|
||||
baremetal01.example.com:
|
||||
|
||||
@@ -14,8 +14,8 @@ all:
|
||||
hosts:
|
||||
app01.example.com:
|
||||
ansible_host: 10.0.0.10
|
||||
filesystem: "btrfs"
|
||||
system:
|
||||
filesystem: "btrfs"
|
||||
type: "virtual"
|
||||
os: "archlinux"
|
||||
name: "app01.example.com"
|
||||
@@ -72,9 +72,9 @@ all:
|
||||
tool: "arch-chroot"
|
||||
db01.example.com:
|
||||
ansible_host: 10.0.0.11
|
||||
filesystem: "xfs"
|
||||
rhel_iso: "local:iso/rhel-9.4-x86_64-dvd.iso"
|
||||
system:
|
||||
filesystem: "xfs"
|
||||
type: "virtual"
|
||||
os: "rhel"
|
||||
version: "9"
|
||||
|
||||
@@ -14,8 +14,8 @@ all:
|
||||
hosts:
|
||||
web01.local:
|
||||
ansible_host: 192.168.122.20
|
||||
filesystem: "ext4"
|
||||
system:
|
||||
filesystem: "ext4"
|
||||
type: "virtual"
|
||||
os: "debian"
|
||||
version: "12"
|
||||
@@ -54,9 +54,9 @@ all:
|
||||
toolkit: "nftables"
|
||||
db01.local:
|
||||
ansible_host: 192.168.122.21
|
||||
filesystem: "xfs"
|
||||
rhel_iso: "/var/lib/libvirt/images/rhel-9.4-x86_64-dvd.iso"
|
||||
system:
|
||||
filesystem: "xfs"
|
||||
type: "virtual"
|
||||
os: "rhel"
|
||||
version: "9"
|
||||
@@ -95,8 +95,8 @@ all:
|
||||
toolkit: "nftables"
|
||||
compute01.local:
|
||||
ansible_host: 192.168.122.22
|
||||
filesystem: "btrfs"
|
||||
system:
|
||||
filesystem: "btrfs"
|
||||
type: "virtual"
|
||||
os: "fedora"
|
||||
version: "41"
|
||||
|
||||
@@ -3,11 +3,10 @@
|
||||
hypervisor:
|
||||
type: "none"
|
||||
|
||||
filesystem: "btrfs"
|
||||
|
||||
system:
|
||||
type: "physical"
|
||||
os: "archlinux"
|
||||
filesystem: "btrfs" # btrfs|ext4|xfs
|
||||
name: "{{ inventory_hostname }}"
|
||||
cpus: 8
|
||||
memory: 16384
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
---
|
||||
# Example variables for virtual provisioning.
|
||||
filesystem: "btrfs"
|
||||
custom_iso: false
|
||||
|
||||
hypervisor:
|
||||
@@ -19,6 +18,7 @@ system:
|
||||
type: "virtual" # virtual|physical
|
||||
os: "archlinux"
|
||||
version: ""
|
||||
filesystem: "btrfs" # btrfs|ext4|xfs
|
||||
name: "{{ inventory_hostname }}"
|
||||
id: 100
|
||||
cpus: 4
|
||||
|
||||
Reference in New Issue
Block a user