Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Dnsmasq task #475

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions tasks/dnsmasq.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@
tags: dnsmasq
loop:
- { dest: '/etc/dnsmasq.d/10-consul', group: 'root', when: ansible_os_family|lower != "freebsd" }
- { dest: '/usr/local/etc/dnsmasq.d/consul.conf', group: 'wheel', when: ansible_os_family|lower == "freebsd" }

- name: Disable systemd-resolved
when: ansible_service_mgr == "systemd"
Expand All @@ -61,10 +60,10 @@

- name: Remove resolv.conf association with systemd-resolved
file:
src: /run/resolvconf/resolv.conf
path: /etc/resolv.conf
state: link
state: absent
become: true
when:
- resolv_dot_conf.stat.islnk
- 'resolv_dot_conf.stat.link_source == "/run/systemd/resolve/stub-resolv.conf"'
- resolv_dot_conf.stat.islnk is defined
- resolv_dot_conf.stat.islnk == True
- resolv_dot_conf.stat.lnk_source == "/run/systemd/resolve/stub-resolv.conf"