add dhcp reservation

This commit is contained in:
2025-03-22 14:31:00 -05:00
parent e7f3505370
commit ce284f8f7e
4 changed files with 58 additions and 17 deletions

View File

@@ -1,27 +1,19 @@
---
- name: Run all tasks necessary to configure matchbox to install the cluster
hosts: all
hosts: 127.0.0.1
connection: local
gather_facts: true
vars_prompt:
- name: freeipa_password
prompt: FreeIPA password for admin user
pre_tasks:
- name: Install requirements
delegate_to: localhost
ansible.builtin.command: ansible-galaxy install -r requirements.yml
# Other tasks that you run BEFORE the roles
tasks:
- name: Set FreeIPA password
ansible.builtin.command:
cmd: export TF_VAR_freeipa_password="{{ freeipa_password }}"
- name: Deploy DNS entries for cluster via Terraform
community.general.terraform:
project_path: 01-dns
project_path: 01-dns/
variables:
freeipa_password: "{{ freeipa_password }}"
state: present
# - name: Basic deploy of a service
# community.general.terraform:
# project_path: '{{ project_dir }}'
# state: present
force_init: true
- include: 02-dhcp/ip-reservations.yml