Skip to content

Commit

Permalink
Make use of ansible_service_mgr
Browse files Browse the repository at this point in the history
  • Loading branch information
tersmitten committed Sep 12, 2017
1 parent 31ad385 commit cda2992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@
- autossh-tunnel-client-configuration-keys

- include: service-upstart.yml
when: ansible_distribution_version | version_compare('15.04', '<')
when: ansible_service_mgr != 'systemd'
tags:
- configuration
- autossh-tunnel-client
- autossh-tunnel-client-service
- autossh-tunnel-client-service-upstart

- include: service-systemd.yml
when: ansible_distribution_version | version_compare('15.04', '>=')
when: ansible_service_mgr == 'systemd'
tags:
- configuration
- autossh-tunnel-client
Expand Down

0 comments on commit cda2992

Please sign in to comment.