Pim Kunis
721623c8fc
enable static IP for terraformed VMs restructure legacy code move hermes code to this repo don't use data disk for hermes leases
18 lines
430 B
YAML
18 lines
430 B
YAML
- name: Install dnsmasq
|
|
apt:
|
|
name: dnsmasq
|
|
- name: Disable systemd-resolved
|
|
systemd:
|
|
name: systemd-resolved
|
|
enabled: false
|
|
state: stopped
|
|
- name: Copy dnsmasq configuration
|
|
copy:
|
|
src: "{{ role_path }}/files/dnsmasq.conf"
|
|
dest: "/etc/dnsmasq.conf"
|
|
register: config
|
|
- name: Enable dnsmasq
|
|
systemd:
|
|
name: dnsmasq
|
|
enabled: true
|
|
state: "{{ 'restarted' if config.changed else 'started' }}"
|