update to nixos 23.11
enable static IP for terraformed VMs restructure legacy code move hermes code to this repo don't use data disk for hermes leases
This commit is contained in:
parent
04e9ce3abb
commit
721623c8fc
28 changed files with 402 additions and 80 deletions
18
legacy/projects/hermes/ansible/roles/dnsmasq/tasks/main.yml
Normal file
18
legacy/projects/hermes/ansible/roles/dnsmasq/tasks/main.yml
Normal file
|
@ -0,0 +1,18 @@
|
|||
- 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' }}"
|
Reference in a new issue