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>
- 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