computer-playbook/roles/native-wireguard/tasks/main.yml

11 lines
298 B
YAML
Raw Normal View History

2020-12-24 14:27:31 +01:00
- name: install wireguard
pacman: name=wireguard-tools state=present
- name: create /etc/wireguard/wg0.conf
copy:
src: "{{ inventory_dir }}/files/{{ inventory_hostname }}/etc/wireguard/wg0.conf"
dest: /etc/wireguard/wg0.conf
owner: root
group: root
2020-12-24 14:27:31 +01:00
notify: restart wireguard