WIP ansible/node: Use ctdb.service file from binary tarball
authorMartin Schwenke <martin@meltin.net>
Wed, 20 Jul 2022 03:03:02 +0000 (13:03 +1000)
committerMartin Schwenke <martin@meltin.net>
Mon, 19 Feb 2024 00:06:29 +0000 (11:06 +1100)
This also needs to remove the template.

Alternatively, this can be made conditional on the presence of
"{{ systemd_dir }}/ctdb.service".

Signed-off-by: Martin Schwenke <martin@meltin.net>
ansible/node/roles/tarball_common/tasks/install_ctdb.yml

index 31a740a45bf3a83bd53a549a87e2d0fbc1e82666..7401a1591ccafdc76661f24370e620eb67cce7af 100644 (file)
@@ -2,12 +2,11 @@
 - name: install Samba binary tarball
   include_tasks: unpack_binary.yml
 
-# Temporary until CTDB uses --systemd-install-services to install
-# ctdb/config/ctdb.service automatically
-- name: generate CTDB systemd service file
-  template:
-    src: ctdb-service.j2
+- name: link to CTDB systemd service file
+  file:
+    src: "{{ systemd_dir }}/ctdb.service"
     dest: /usr/lib/systemd/system/ctdb.service
+    state: link
 
 # There seems no sane way to tell systemd to add to $PATH  :-(
 - name: generate script.options to hack PATH