-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:
@@ -16,3 +16,10 @@
|
||||
- /home/pi/Documents/smb
|
||||
- /home/pi/scripts
|
||||
tags: create_dirs
|
||||
- name: update hosts file
|
||||
become: true
|
||||
blockinfile:
|
||||
dest: /etc/hosts
|
||||
content: "{{ lookup('template', '{{ role_path }}/templates/hosts.j2') }}"
|
||||
state: present
|
||||
tags: update_hosts
|
||||
|
||||
Reference in New Issue
Block a user