Files
ansible/roles/xray-lists/tasks/configure.yml
T

20 lines
455 B
YAML
Raw Normal View History

2026-08-28 11:03:45 +00:00
---
- name: ensure /etc/nftables.d exists
ansible.builtin.file:
path: /etc/nftables.d
state: directory
mode: "0755"
2026-08-28 11:03:45 +00:00
- 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