move to new module setup (#2)

Reviewed-on: https://git.pim.kunis.nl/home/hermes/pulls/2
This commit is contained in:
Pim Kunis 2023-04-10 11:21:58 +00:00
parent d13fb8ee95
commit 1088fefdb2
20 changed files with 9 additions and 64 deletions

View file

@ -1,18 +0,0 @@
- 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' }}"