From 919af379b3bf074cbd331753517ddd3f51baf4fa Mon Sep 17 00:00:00 2001 From: Mischa ter Smitten Date: Fri, 20 Dec 2024 14:32:47 +0100 Subject: [PATCH] Make it possible to configure "use" --- handlers/main.yml | 1 + tasks/main.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/handlers/main.yml b/handlers/main.yml index e28ba49..1ecce34 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -4,4 +4,5 @@ ansible.builtin.service: name: autossh-tunnel-client state: restarted + use: "{{ service_use_service_mgr | default(omit) }}" when: service_default_state | default('started') == 'started' diff --git a/tasks/main.yml b/tasks/main.yml index 722f0c8..83171c0 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -61,6 +61,7 @@ name: autossh-tunnel-client state: "{{ service_default_state | default('started') }}" enabled: "{{ service_default_enabled | default(true) | bool }}" + use: "{{ service_use_service_mgr | default(omit) }}" tags: - configuration - autossh-tunnel-client