--- - 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"