Cleaned up always-changed status tasks.
authorLuke Hoersten <luke@hoersten.org>
Mon, 29 Jul 2024 12:41:57 -0500
changeset 237 c6c11084c802
parent 236 55fe664e0a05
child 238 bdbc88cb5078
Cleaned up always-changed status tasks.
dendrite/server/tasks/main.yaml
nostr/relayer/tasks/main.yaml
pleroma/otp/tasks/instance.yaml
prosody/files/prosody.sh
prosody/tasks/main.yaml
scrypted/tasks/main.yaml
--- a/dendrite/server/tasks/main.yaml	Mon Jul 29 10:24:20 2024 -0500
+++ b/dendrite/server/tasks/main.yaml	Mon Jul 29 12:41:57 2024 -0500
@@ -10,6 +10,7 @@
     path: "/tmp/dendrite/"
     state: "directory"
     mode: "0755"
+  changed_when: false
 
 - name: unarchive dendrite bins
   become: yes
@@ -17,7 +18,7 @@
     remote_src: yes
     src: "{{dendrite_tar}}"
     dest: "/tmp/dendrite/"
-  notify: restart service
+  changed_when: false
 
 - name: install dendrite binary
   become: yes
@@ -79,6 +80,7 @@
     owner: "postgres"
     group: "postgres"
     mode: "0600"
+  changed_when: false
 
 - name: install db schema psql
   become: yes
@@ -103,10 +105,6 @@
     dest: "/lib/systemd/system/[email protected]"
   notify: restart service
 
-- name: ensure instance service is stopped
-  become: yes
-  systemd: name="dendrite@{{dendrite_port}}.service" enabled="no" state="stopped" daemon_reload="yes"
-
 - name: ensure service is started
   become: yes
   systemd: name="dendrite@{{dendrite_port}}.service" enabled="yes" state="started"
--- a/nostr/relayer/tasks/main.yaml	Mon Jul 29 10:24:20 2024 -0500
+++ b/nostr/relayer/tasks/main.yaml	Mon Jul 29 12:41:57 2024 -0500
@@ -48,6 +48,7 @@
     owner: "postgres"
     group: "postgres"
     mode: "0600"
+  changed_when: false
 
 - name: install db schema psql
   become: yes
--- a/pleroma/otp/tasks/instance.yaml	Mon Jul 29 10:24:20 2024 -0500
+++ b/pleroma/otp/tasks/instance.yaml	Mon Jul 29 12:41:57 2024 -0500
@@ -31,6 +31,7 @@
     owner: "{{pleroma_db_superuser}}"
     group: "{{pleroma_db_superuser}}"
     mode: "0600"
+  changed_when: false
 
 - name: install pleroma psql
   become: yes
--- a/prosody/files/prosody.sh	Mon Jul 29 10:24:20 2024 -0500
+++ b/prosody/files/prosody.sh	Mon Jul 29 12:41:57 2024 -0500
@@ -1,3 +1,3 @@
 #! /bin/bash
 
-prosodyctl --root cert import nth.io /etc/letsencrypt/live/nth.io-0001/cert.pem
+prosodyctl --root cert import nth.io /etc/letsencrypt/live/nth.io-0001/fullchain.pem
--- a/prosody/tasks/main.yaml	Mon Jul 29 10:24:20 2024 -0500
+++ b/prosody/tasks/main.yaml	Mon Jul 29 12:41:57 2024 -0500
@@ -30,7 +30,7 @@
 - name: run letsencrypt ssl deploy hook
   become: yes
   command: "/etc/letsencrypt/renewal-hooks/deploy/prosody.sh"
-  notify: restart prosody
+  changed_when: false
 
 - name: install db schema file
   become: yes
--- a/scrypted/tasks/main.yaml	Mon Jul 29 10:24:20 2024 -0500
+++ b/scrypted/tasks/main.yaml	Mon Jul 29 12:41:57 2024 -0500
@@ -35,6 +35,7 @@
   command: "docker compose pull"
   args:
     chdir: "{{scrypted_dir}}"
+  changed_when: false
 
 - name: docker compose
   become: yes
@@ -42,3 +43,4 @@
   command: "docker compose up -d"
   args:
     chdir: "{{scrypted_dir}}"
+  changed_when: false