Move wireguard install to wireguard role

This commit is contained in:
Wojciech Kozlowski 2022-12-13 22:06:07 +01:00
parent 6574b1c86b
commit f06d757010
2 changed files with 4 additions and 4 deletions

View File

@ -5,10 +5,6 @@
sysctl_file: "/etc/sysctl.d/local.conf" sysctl_file: "/etc/sysctl.d/local.conf"
reload: true reload: true
- name: "install wireguard"
ansible.builtin.apt:
name: "wireguard"
- name: "script for creating virtual interfaces" - name: "script for creating virtual interfaces"
ansible.builtin.copy: ansible.builtin.copy:
src: "./ip-link-add.sh" src: "./ip-link-add.sh"

View File

@ -1,3 +1,7 @@
- name: "install wireguard"
ansible.builtin.apt:
name: "wireguard"
- name: "configure wireguard" - name: "configure wireguard"
ansible.builtin.template: ansible.builtin.template:
src: "./wg0.conf.j2" src: "./wg0.conf.j2"