From c7ea6d7e3d0bcd0be63c1adf712f660856218195 Mon Sep 17 00:00:00 2001 From: Grzegorz Koper Date: Wed, 24 Jan 2024 10:32:25 +0100 Subject: [PATCH] Moving variable from play to group_vars This lets us override in case one of the machines have different VG name Otherwise play variables take priority. --- etc/kayobe/ansible/growroot.yml | 2 -- etc/kayobe/inventory/group_vars/all/growroot | 3 +++ 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 etc/kayobe/inventory/group_vars/all/growroot diff --git a/etc/kayobe/ansible/growroot.yml b/etc/kayobe/ansible/growroot.yml index cdd7293d9..337453ed7 100644 --- a/etc/kayobe/ansible/growroot.yml +++ b/etc/kayobe/ansible/growroot.yml @@ -23,8 +23,6 @@ ansible_python_interpreter: /usr/bin/python3 # Work around no known_hosts entry on first boot. ansible_ssh_common_args: "-o StrictHostKeyChecking=no" - # Name of the LVM VG containing the root PV. - growroot_vg: "rootvg" # Don't assume facts are present. os_family: "{{ ansible_facts.os_family | default('Debian' if os_distribution == 'ubuntu' else 'RedHat') }}" # Ignore LVM check diff --git a/etc/kayobe/inventory/group_vars/all/growroot b/etc/kayobe/inventory/group_vars/all/growroot new file mode 100644 index 000000000..280cee665 --- /dev/null +++ b/etc/kayobe/inventory/group_vars/all/growroot @@ -0,0 +1,3 @@ +--- +# Name of the LVM VG containing the root PV for ansible/growroot.yml +growroot_vg: "rootvg"