fix: use multiline yaml string for configuration
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Robert Kaussow 2023-06-21 09:02:34 +02:00
parent 31596e0cdf
commit b06e0fa27a
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
3 changed files with 5 additions and 6 deletions

View File

@ -1,4 +1,4 @@
---
dnsmasq_listen_address:
- "127.0.0.1"
- "::1"
dnsmasq_conf: |
bind-interfaces
interface=lo

View File

@ -6,8 +6,8 @@
state: present
- name: Create dnsmasq configuration
template:
src: "etc/dnsmasq.d/local.conf.j2"
copy:
content: "{{ dnsmasq_conf }}"
dest: "/etc/dnsmasq.d/local.conf"
mode: 0644
notify: __dnsmasq_restart

View File

@ -1 +0,0 @@
listen-address={{ dnsmasq_listen_address | join(",") }}