1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
---
- name: "[OpenRC] Enable and start service: acme-redirect"
service:
name: acme-redirect
enabled: yes
state: started
when:
- ansible_service_mgr == "openrc"
- name: "[systemd] Enable and start service: acme-redirect"
systemd:
name: acme-redirect
enabled: yes
state: started
when:
- ansible_service_mgr == "systemd"
- name: "[systemd] Enable and start systemd-timer: acme-redirect-renew"
systemd:
name: acme-redirect-renew.timer
enabled: yes
state: started
when:
- ansible_service_mgr == "systemd"