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,7 +3,8 @@ all:
|
|||||||
vars:
|
vars:
|
||||||
hypervisor:
|
hypervisor:
|
||||||
type: "none"
|
type: "none"
|
||||||
filesystem: "ext4"
|
system:
|
||||||
|
filesystem: "ext4"
|
||||||
hosts:
|
hosts:
|
||||||
baremetal01.example.com:
|
baremetal01.example.com:
|
||||||
ansible_host: 10.0.0.162
|
ansible_host: 10.0.0.162
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ all:
|
|||||||
hosts:
|
hosts:
|
||||||
app01.example.com:
|
app01.example.com:
|
||||||
ansible_host: 10.0.0.10
|
ansible_host: 10.0.0.10
|
||||||
filesystem: "btrfs"
|
|
||||||
system:
|
system:
|
||||||
|
filesystem: "btrfs"
|
||||||
type: "virtual"
|
type: "virtual"
|
||||||
os: "archlinux"
|
os: "archlinux"
|
||||||
name: "app01.example.com"
|
name: "app01.example.com"
|
||||||
@@ -72,9 +72,9 @@ all:
|
|||||||
tool: "arch-chroot"
|
tool: "arch-chroot"
|
||||||
db01.example.com:
|
db01.example.com:
|
||||||
ansible_host: 10.0.0.11
|
ansible_host: 10.0.0.11
|
||||||
filesystem: "xfs"
|
|
||||||
rhel_iso: "local:iso/rhel-9.4-x86_64-dvd.iso"
|
rhel_iso: "local:iso/rhel-9.4-x86_64-dvd.iso"
|
||||||
system:
|
system:
|
||||||
|
filesystem: "xfs"
|
||||||
type: "virtual"
|
type: "virtual"
|
||||||
os: "rhel"
|
os: "rhel"
|
||||||
version: "9"
|
version: "9"
|
||||||
|
|||||||
@@ -14,8 +14,8 @@ all:
|
|||||||
hosts:
|
hosts:
|
||||||
web01.local:
|
web01.local:
|
||||||
ansible_host: 192.168.122.20
|
ansible_host: 192.168.122.20
|
||||||
filesystem: "ext4"
|
|
||||||
system:
|
system:
|
||||||
|
filesystem: "ext4"
|
||||||
type: "virtual"
|
type: "virtual"
|
||||||
os: "debian"
|
os: "debian"
|
||||||
version: "12"
|
version: "12"
|
||||||
@@ -54,9 +54,9 @@ all:
|
|||||||
toolkit: "nftables"
|
toolkit: "nftables"
|
||||||
db01.local:
|
db01.local:
|
||||||
ansible_host: 192.168.122.21
|
ansible_host: 192.168.122.21
|
||||||
filesystem: "xfs"
|
|
||||||
rhel_iso: "/var/lib/libvirt/images/rhel-9.4-x86_64-dvd.iso"
|
rhel_iso: "/var/lib/libvirt/images/rhel-9.4-x86_64-dvd.iso"
|
||||||
system:
|
system:
|
||||||
|
filesystem: "xfs"
|
||||||
type: "virtual"
|
type: "virtual"
|
||||||
os: "rhel"
|
os: "rhel"
|
||||||
version: "9"
|
version: "9"
|
||||||
@@ -95,8 +95,8 @@ all:
|
|||||||
toolkit: "nftables"
|
toolkit: "nftables"
|
||||||
compute01.local:
|
compute01.local:
|
||||||
ansible_host: 192.168.122.22
|
ansible_host: 192.168.122.22
|
||||||
filesystem: "btrfs"
|
|
||||||
system:
|
system:
|
||||||
|
filesystem: "btrfs"
|
||||||
type: "virtual"
|
type: "virtual"
|
||||||
os: "fedora"
|
os: "fedora"
|
||||||
version: "41"
|
version: "41"
|
||||||
|
|||||||
@@ -3,11 +3,10 @@
|
|||||||
hypervisor:
|
hypervisor:
|
||||||
type: "none"
|
type: "none"
|
||||||
|
|
||||||
filesystem: "btrfs"
|
|
||||||
|
|
||||||
system:
|
system:
|
||||||
type: "physical"
|
type: "physical"
|
||||||
os: "archlinux"
|
os: "archlinux"
|
||||||
|
filesystem: "btrfs" # btrfs|ext4|xfs
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
cpus: 8
|
cpus: 8
|
||||||
memory: 16384
|
memory: 16384
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
---
|
---
|
||||||
# Example variables for virtual provisioning.
|
# Example variables for virtual provisioning.
|
||||||
filesystem: "btrfs"
|
|
||||||
custom_iso: false
|
custom_iso: false
|
||||||
|
|
||||||
hypervisor:
|
hypervisor:
|
||||||
@@ -19,6 +18,7 @@ system:
|
|||||||
type: "virtual" # virtual|physical
|
type: "virtual" # virtual|physical
|
||||||
os: "archlinux"
|
os: "archlinux"
|
||||||
version: ""
|
version: ""
|
||||||
|
filesystem: "btrfs" # btrfs|ext4|xfs
|
||||||
name: "{{ inventory_hostname }}"
|
name: "{{ inventory_hostname }}"
|
||||||
id: 100
|
id: 100
|
||||||
cpus: 4
|
cpus: 4
|
||||||
|
|||||||
Reference in New Issue
Block a user