mirror of
https://github.com/roles-ansible/ansible_collection_wireguard.git
synced 2024-10-27 22:47:42 +01:00
20 lines
540 B
YAML
20 lines
540 B
YAML
|
---
|
||
|
- 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"
|