dendrite/server/tasks/main.yaml
changeset 183 b31ef0e10cad
parent 180 f2f99b9b16ee
child 186 c48761176ede
--- a/dendrite/server/tasks/main.yaml	Mon Aug 08 16:12:44 2022 -0500
+++ b/dendrite/server/tasks/main.yaml	Mon Aug 08 21:16:41 2022 -0500
@@ -50,7 +50,6 @@
     - {"src": "dendrite-upgrade-tests"   , "dest": "dendrite-upgrade-tests"}
     - {"src": "generate-config"          , "dest": "dendrite-generate-config"}
     - {"src": "generate-keys"            , "dest": "dendrite-generate-keys"}
-    - {"src": "goose"                    , "dest": "dendrite-goose"}
     - {"src": "resolve-state"            , "dest": "dendrite-resolve-state"}
 
 - name: create instance dir
@@ -66,6 +65,17 @@
     - "{{dendrite_dir}}"
     - "{{dendrite_dir}}/{{dendrite_instance}}"
 
+- name: create instance port symlink
+  become: yes
+  file:
+    src: "{{dendrite_dir}}/{{dendrite_instance}}"
+    dest: "{{dendrite_dir}}/{{dendrite_port}}"
+    state: "link"
+    owner: "{{dendrite_user}}"
+    group: "{{dendrite_user}}"
+    mode: "0755"
+  notify: restart service
+
 - name: install keys
   become: yes
   copy:
@@ -107,6 +117,10 @@
     src: "[email protected]"
     dest: "/lib/systemd/system/[email protected]"
 
+- name: ensure instance service is stopped
+  become: yes
+  systemd: name="dendrite@{{dendrite_instance}}.service" enabled="no" state="stopped" daemon_reload="yes"
+
 - name: ensure service is started
   become: yes
-  systemd: name="dendrite@{{dendrite_instance}}.service" enabled="yes" state="started"
+  systemd: name="dendrite@{{dendrite_port}}.service" enabled="yes" state="started"