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: dnsmasq_conf: |
- "127.0.0.1" bind-interfaces
- "::1" interface=lo

View File

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

View File

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