ansible: add xray_client role + playbook + [xray] inventory group

- New role: xray_client (deploys Xray VLESS+Reality client container)
- New playbook: xray-client.yml
- New inventory group: [xray] (emby-sascha, emby-chris)
- pfannkuchen.sh: new command 'xray'
- Prepared for migration from FRP to Xray tunnel
This commit is contained in:
sascha 2026-04-10 22:13:41 +02:00
parent 2650391432
commit 73281a3ac6
6 changed files with 98 additions and 17 deletions

View file

@ -0,0 +1,28 @@
---
- name: Ensure xray config directory exists
file:
path: /app-config/xray
state: directory
mode: '0750'
- name: Copy xray client config
copy:
src: "{{ xray_config_path }}"
dest: /app-config/xray/client.json
mode: '0640'
notify: restart xray-client
- name: Pull xray image
community.docker.docker_image:
name: "{{ xray_image }}"
source: pull
- name: Start xray-client container
community.docker.docker_container:
name: "{{ xray_container_name }}"
image: "{{ xray_image }}"
state: started
restart_policy: unless-stopped
network_mode: host
volumes:
- "/app-config/xray/client.json:/etc/xray/config.json:ro"