1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
---
- name: "[OpenRC] Start and enable service: frps"
service:
name: frps
state: started
enabled: yes
when:
- ansible_service_mgr == "openrc"
- name: "[systemd] Start and enable service: frps"
systemd:
name: frps
state: started
enabled: yes
when:
- ansible_service_mgr == "systemd"