20 lines
455 B
YAML
20 lines
455 B
YAML
---
|
|
- name: ensure /etc/nftables.d exists
|
|
ansible.builtin.file:
|
|
path: /etc/nftables.d
|
|
state: directory
|
|
mode: "0755"
|
|
|
|
- name: render xray-lists config
|
|
ansible.builtin.template:
|
|
src: xray-config.yaml.j2
|
|
dest: /var/lib/xray-lists/config.yaml
|
|
mode: "0640"
|
|
register: xray_lists_config
|
|
|
|
- name: update xray-lists
|
|
ansible.builtin.systemd_service:
|
|
name: xray-lists.service
|
|
state: started
|
|
when: xray_lists_config.changed
|