This repository has been archived on 2024-04-30. You can view files and clone it, but cannot push or open issues or pull requests.
setup/roles/wireguard/tasks/main.yml
2023-04-06 20:27:58 +02:00

11 lines
273 B
YAML

- name: Install wireguard
become: true
apt:
name: wireguard
state: present
- name: Install home.conf
become: true
template:
src: "{{ role_path }}/templates/wg.conf.j2"
dest: "/etc/wireguard/{{ item.name }}.conf"
loop: "{{ wireguard_interfaces }}"