-change hosts file - will maintain hosts file on multipe machines.
for the scope of this type of demo network, this is much simpler than installing and managing dns.
This commit is contained in:
12
roles/domainname/tasks/main.yaml
Executable file
12
roles/domainname/tasks/main.yaml
Executable file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
- lineinfile:
|
||||
path: /etc/dhcpcd.conf
|
||||
regexp: "{{ item.regexp }}"
|
||||
line: "{{ item.line }}"
|
||||
with_items:
|
||||
- { regexp: '^static\ domain_name=', line: 'static domain_name=demo.dsfinancial.com' }
|
||||
- { regexp: '^static\ domain_search=', line: 'static domain_search=demo.dsfinancial.com' }
|
||||
become: true
|
||||
tags: update_domainname
|
||||
|
||||
|
||||
Reference in New Issue
Block a user