add vault file
This commit is contained in:
@@ -16,9 +16,11 @@
|
||||
- name: Add host reservation to dnsmasq
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/dnsmasq.d/hosts.conf
|
||||
line: "dhcp-host={{ mac_address }},{{ ip_address }},{{ hostname }}"
|
||||
regexp: "^dhcp-host={{ mac_address }}"
|
||||
line: "dhcp-host={{ mac_address }},{{ ip_address }} #{{ hostname }}"
|
||||
state: present
|
||||
become: true
|
||||
|
||||
- name: Restart dnsmasq service
|
||||
ansible.builtin.service:
|
||||
name: dnsmasq
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
hosts: 127.0.0.1
|
||||
connection: local
|
||||
gather_facts: true
|
||||
vars_files: vars.yml
|
||||
#vars_files: ../vars.yml
|
||||
|
||||
vars_prompt:
|
||||
- name: freeipa_password
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
|
||||
vars:
|
||||
mac_address: "98:b7:85:1e:c6:f1"
|
||||
ip_address: "10.1.71.10"
|
||||
hostname: "ocp-hub"
|
||||
Reference in New Issue
Block a user