1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_wireguard.git synced 2024-10-27 22:47:42 +01:00
ansible_collection_wireguard/roles/wireguardui/tasks/configure.yml

20 lines
540 B
YAML
Raw Permalink Normal View History

2024-10-14 01:34:07 +02:00
---
- name: Create wireguard-ui systemd service
become: true
ansible.builtin.template:
src: 'templates/wireguard-ui.service.j2'
dest: "/etc/systemd/system/wireguard-ui.service"
owner: 'root'
group: 'root'
mode: '0644'
notify: "systemctl restart wireguard-ui.service"
- name: Run systemctl start wireguard-ui.service
become: true
ansible.builtin.systemd_service:
name: 'wireguard-ui.service'
enabled: true
state: 'started'
daemon_reload: true
notify: "systemctl restart wireguard-ui.service"