for the scope of this type of demo network, this is much simpler than installing and managing dns.
11 lines
218 B
YAML
Executable File
11 lines
218 B
YAML
Executable File
---
|
|
- hosts: all
|
|
tasks:
|
|
- lineinfile:
|
|
path: /etc/sudoers
|
|
state: present
|
|
regexp: '^%sudo'
|
|
line: '%sudo ALL=(ALL) NOPASSWD: ALL'
|
|
validate: 'visudo -cf %s'
|
|
become: true
|