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
26
27
28
29
30
31
32
---
- name: "Create directory: /etc/frp"
file:
path: /etc/frp
state: directory
- name: "[nftables] Create rule for: frps"
template:
src: nftables-rule.nft.j2
dest: /etc/nftables.d/frps.nft
when:
- network.nftables.enable is true
notify: "Restart nftables"
- name: "[Alpine] Generate frps service config"
template:
src: frps.confd.j2
dest: /etc/conf.d/frps
mode: 0644
when:
- ansible_distribution == "Alpine"
notify: "Restart frps"
- name: "[Archlinux] Generate frps config"
template:
src: frps.ini.j2
dest: /etc/frp/frps.ini
mode: 0644
when:
- ansible_distribution == "Archlinux"
notify: "Restart frps"