From 13bb2d6e73a555eaa18134cff1d559f035af2eec Mon Sep 17 00:00:00 2001 From: rblundon Date: Sat, 22 Mar 2025 14:43:25 -0500 Subject: [PATCH] updated vars file --- 10-sno-hub-cluster/02-dhcp/ip-reservations.yml | 5 +---- 10-sno-hub-cluster/install.yml | 8 ++++---- 10-sno-hub-cluster/vars.yml | 8 ++++++++ 3 files changed, 13 insertions(+), 8 deletions(-) create mode 100644 10-sno-hub-cluster/vars.yml diff --git a/10-sno-hub-cluster/02-dhcp/ip-reservations.yml b/10-sno-hub-cluster/02-dhcp/ip-reservations.yml index dd1b313..271e951 100644 --- a/10-sno-hub-cluster/02-dhcp/ip-reservations.yml +++ b/10-sno-hub-cluster/02-dhcp/ip-reservations.yml @@ -2,10 +2,7 @@ - name: Set dnsmasq host reservation hosts: all become: true - vars: - mac_address: "98:b7:85:1e:c6:f1" - ip_address: "10.1.71.10" - hostname: "ocp-hub" + tasks: - name: Ensure dnsmasq is installed ansible.builtin.apt: diff --git a/10-sno-hub-cluster/install.yml b/10-sno-hub-cluster/install.yml index 0bd5c74..c36149c 100644 --- a/10-sno-hub-cluster/install.yml +++ b/10-sno-hub-cluster/install.yml @@ -3,9 +3,7 @@ hosts: 127.0.0.1 connection: local gather_facts: true - vars_prompt: - - name: freeipa_password - prompt: FreeIPA password for admin user + include_vars: vars.yml tasks: - name: Deploy DNS entries for cluster via Terraform @@ -16,4 +14,6 @@ state: present force_init: true - - include: 02-dhcp/ip-reservations.yml + - ansible.builtin.include_tasks: + file: 02-dhcp/ip-reservations.yml + include_vars: vars.yml diff --git a/10-sno-hub-cluster/vars.yml b/10-sno-hub-cluster/vars.yml new file mode 100644 index 0000000..c6d2877 --- /dev/null +++ b/10-sno-hub-cluster/vars.yml @@ -0,0 +1,8 @@ +vars_prompt: + - name: freeipa_password + prompt: FreeIPA password for admin user + +vars: + mac_address: "98:b7:85:1e:c6:f1" + ip_address: "10.1.71.10" + hostname: "ocp-hub"