add nginx, sshd, ssl roles
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
---
|
||||
- name: validate xray-core config
|
||||
ansible.builtin.command: su -s /bin/sh xray-core -c "/opt/xray-core/xray run -test -confdir /opt/xray-core/config"
|
||||
changed_when: false
|
||||
listen: restart xray-core
|
||||
|
||||
- name: restart xray-core systemd service unit
|
||||
ansible.builtin.systemd_service:
|
||||
name: xray-core
|
||||
daemon_reload: true
|
||||
state: restarted
|
||||
enabled: true
|
||||
listen: restart xray-core
|
||||
Reference in New Issue
Block a user