Disable systemd-resolved to not conflict with adguard home.
authorLuke Hoersten <luke@hoersten.org>
Sun, 28 Jun 2020 12:27:27 -0500
changeset 53 9e4f750f5d36
parent 52 5a5071d4eaad
child 54 1ea4f1c7c675
Disable systemd-resolved to not conflict with adguard home.
adguard-home/tasks/main.yaml
prometheus/server/tasks/main.yaml
--- a/adguard-home/tasks/main.yaml	Sun Jun 28 10:32:15 2020 -0500
+++ b/adguard-home/tasks/main.yaml	Sun Jun 28 12:27:27 2020 -0500
@@ -44,6 +44,10 @@
   template: src="AdGuardHome.yaml.j2" dest="/etc/AdGuardHome/AdGuardHome.yaml"
   notify: restart adguard home
 
+- name: disable systemd-resolved service
+  become: yes
+  systemd: name="systemd-resolved.service" enabled="no" state="stopped"
+
 - name: ensure adguard home is started
   become: yes
   systemd: name="AdGuardHome.service" enabled="yes" state="started"
--- a/prometheus/server/tasks/main.yaml	Sun Jun 28 10:32:15 2020 -0500
+++ b/prometheus/server/tasks/main.yaml	Sun Jun 28 12:27:27 2020 -0500
@@ -21,6 +21,10 @@
     - restart prometheus service
     - restart grafana service
 
+- name: ensure grafana is started
+  become: yes
+  systemd: name="grafana-server.service" enabled="yes" state="started"
+
 - name: install grafana prometheus data source
   become: yes
   grafana_datasource:
@@ -43,9 +47,9 @@
     mode: "0640"
   loop: "{{prometheus_server_grafana_dashboards}}"
 
-- name: install grafana dashboards
-  become: yes
-  grafana_dashboard:
-    grafana_url: "http://localhost:3000"
-    path: "/tmp/{{item}}"
-  loop: "{{prometheus_server_grafana_dashboards}}"
+# - name: install grafana dashboards
+#   become: yes
+#   grafana_dashboard:
+#     grafana_url: "http://localhost:3000"
+#     path: "/tmp/{{item}}"
+#   loop: "{{prometheus_server_grafana_dashboards}}"