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

12 lines
273 B
YAML
Raw Normal View History

2023-01-09 18:43:01 +00:00
- name: Install wireguard
become: true
apt:
name: wireguard
state: present
- name: Install home.conf
become: true
template:
2023-04-06 18:27:58 +00:00
src: "{{ role_path }}/templates/wg.conf.j2"
dest: "/etc/wireguard/{{ item.name }}.conf"
loop: "{{ wireguard_interfaces }}"