tunnel, enable the service and fix folder permissions.

This commit is contained in:
me
2026-10-17 16:52:04 -07:00
parent 9a1004dfb9
commit 44a0463ab8
+8 -2
View File
@@ -24,13 +24,13 @@
ansible.builtin.file:
path: /etc/sv/{{ tunnel_service_name }}/log
state: directory
mode: "0644"
mode: "0755"
- name: General | Tunnel | mkdir | /var/log
ansible.builtin.file:
path: /var/log/{{ tunnel_service_name }}
state: directory
mode: "0644"
mode: "0755"
- name: General | Tunnel | Script | Run
ansible.builtin.copy:
@@ -66,3 +66,9 @@
mode: "0755"
when: tunnel_remote_host != "false"
- name: General | Tunnel | Service | Enable
ansible.builtin.service:
name: "{{ tunnel_service_name }}"
state: "{{ 'started' if tunnel_remote_host else 'stopped' }}"
enabled: "{{ true if tunnel_remote_host else false }}"