From 5e17f977b7c628d556697482101f1fc9a4bdd456 Mon Sep 17 00:00:00 2001 From: L3D Date: Mon, 5 Aug 2024 17:18:10 +0200 Subject: [PATCH] Make sure service is started --- README.md | 2 ++ tasks/setup_systemd.yml | 8 ++++++++ vars/main.yml | 2 +- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index b8c1125..2f32885 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # ansible_role_etesync_dav Ansible role to install the etebase-dav sync client + +Learn more about it at https://github.com/etesync/etesync-dav/ diff --git a/tasks/setup_systemd.yml b/tasks/setup_systemd.yml index 1673f7b..63aed1c 100644 --- a/tasks/setup_systemd.yml +++ b/tasks/setup_systemd.yml @@ -10,3 +10,11 @@ notify: - 'Run systemctl restart etesync-dav.service' - 'Run systemctl enable etesync-dav.service' + +- name: Make sure etesync-dav.service started + become: true + ansible.builtin.systemd: + name: 'etesync-dav.service' + enabled: true + state: 'started' + daemon_reload: true diff --git a/vars/main.yml b/vars/main.yml index 5e6ccfc..c934314 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -2,5 +2,5 @@ etesync_dav__repo_api: 'https://api.github.com/repos/etesync/etesync-dav/releases/latest' # versionscheck -playbook_version_number: 17 +playbook_version_number: 18 playbook_version_path: 'role-l3d.etesync_dav.version'