Skip to content

Commit

Permalink
Make it possible to configure "use"
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Dec 20, 2024
1 parent 10f593b commit 919af37
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
1 change: 1 addition & 0 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 919af37

Please sign in to comment.