fix variables
This commit is contained in:
@@ -16,8 +16,8 @@
|
||||
- name: Add host reservation to dnsmasq
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/dnsmasq.d/hosts.conf
|
||||
regexp: "^dhcp-host={{ mac_address }}"
|
||||
line: "dhcp-host={{ mac_address }},{{ ip_address }} #{{ hostname }}"
|
||||
regexp: "^dhcp-host={{ hostvars['ocp-hub'].mac_address }}"
|
||||
line: "dhcp-host={{ hostvars['ocp-hub'].mac_address }},{{ hostvars['ocp-hub'].ip_address }} #{{ hostvars['ocp-hub'].hostname }}"
|
||||
state: present
|
||||
become: true
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
apiVersion: v1alpha1
|
||||
kind: AgentConfig
|
||||
metadata:
|
||||
name: hub
|
||||
rendezvousIP: 10.1.71.10
|
||||
bootArtifactsBaseURL: https://matchbox.int.mk-labs.cloud:8080/assets/hub/
|
||||
hosts:
|
||||
- hostname: hub
|
||||
role: master
|
||||
interfaces:
|
||||
- name: enp1s0f0
|
||||
macAddress: 98:B7:85:1E:C6:F1
|
||||
networkConfig:
|
||||
interfaces:
|
||||
- name: enp1s0f0
|
||||
type: ethernet
|
||||
state: up
|
||||
identifier: mac-address
|
||||
mac-address: 98:B7:85:1E:C6:F1
|
||||
ipv4:
|
||||
enabled: true
|
||||
dhcp: true
|
||||
dns-resolver:
|
||||
config:
|
||||
server:
|
||||
- 10.1.71.254
|
||||
- 10.1.71.253
|
||||
routes:
|
||||
config:
|
||||
- destination: 0.0.0.0/0
|
||||
next-hop-address: 10.1.71.1
|
||||
next-hop-interface: enp1s0f0
|
||||
table-id: 254
|
||||
@@ -16,11 +16,15 @@
|
||||
- ansible.builtin.include_tasks:
|
||||
file: 02-dhcp/ip-reservations.yml
|
||||
|
||||
- name: Terraform matchbox groups file
|
||||
- name: OpenShift Installer install-config.yaml
|
||||
ansible.builtin.template:
|
||||
src: templates/openshift-installer/install-config.yaml.j2
|
||||
dest: 03-openshift-image/install-config.yaml
|
||||
# include_vars: group_vars/hub
|
||||
|
||||
- name: OpenShift Installer agent-config.yaml
|
||||
ansible.builtin.template:
|
||||
src: templates/openshift-installer/agent-config.yaml.j2
|
||||
dest: 03-openshift-image/agent-config.yaml
|
||||
|
||||
- ansible.builtin.include_tasks:
|
||||
file: 03-openshift-image/create-openshift-image.yml
|
||||
|
||||
Reference in New Issue
Block a user