Install and configure following services.
- DNS:
dnsmasq
as local dns server
- Create your inventory file like
inventory/hosts.sample
- Set local domain at
domain: "<YOUR_DOMAIN_HERE>"
inroles/dns/vars/dns.yml
- Set hosts file as
hosts-dnsmasq
inroles/dns/files
- For exsample, this repo contains
hosts-dnsmasq.sample
- For exsample, this repo contains
To check diff of configure files, run this.
$ ansible-playbook -i inventory/hosts --diff --check
$ ansible-playbook -i inventory/hosts main.yml --ask-become-pass