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"