# HG changeset patch # User Luke Hoersten # Date 1594338588 18000 # Node ID cde9702e3bff4f36869a7de333cf0b886decb170 # Parent 6b9694f833a4a54b0720324155086b4aeea3c923 Fixed resolv.conf in adguard role. diff -r 6b9694f833a4 -r cde9702e3bff adguard-home/tasks/main.yaml --- a/adguard-home/tasks/main.yaml Wed Jul 08 15:46:28 2020 -0500 +++ b/adguard-home/tasks/main.yaml Thu Jul 09 18:49:48 2020 -0500 @@ -44,17 +44,21 @@ template: src="AdGuardHome.yaml.j2" dest="/etc/AdGuardHome/AdGuardHome.yaml" notify: restart adguard home +- stat: "path=/etc/resolv.conf" + register: sym + +- name: replace systemd-resolved conf stub + become: yes + copy: + remote_src: yes + src: "/run/systemd/resolve/resolv.conf" + dest: "/etc/resolv.conf" + when: sym.stat.islnk is defined and sym.stat.islnk + - name: disable systemd-resolved service become: yes systemd: name="systemd-resolved.service" enabled="no" state="stopped" -- name: replace systemd-resolved conf stub - become: yes - file: - src: "/run/systemd/resolve/resolv.conf" - dest: "/etc/resolv.conf" - state: "link" - - name: ensure adguard home is started become: yes systemd: name="AdGuardHome.service" enabled="yes" state="started" diff -r 6b9694f833a4 -r cde9702e3bff pleroma/otp/tasks/main.yaml --- a/pleroma/otp/tasks/main.yaml Wed Jul 08 15:46:28 2020 -0500 +++ b/pleroma/otp/tasks/main.yaml Thu Jul 09 18:49:48 2020 -0500 @@ -77,8 +77,7 @@ group: "pleroma" changed_when: false -- name: install soapbox frontend - include_tasks: soapbox.yaml +- include_tasks: soapbox.yaml when: pleroma_soapbox - name: configure pleroma systemd service