mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-09-17 07:46:05 +02:00
Add 'client-playbook/' from commit '13f29ce5f74bba0376e04189e757cb9718cf2f93'
git-subtree-dir: client-playbook git-subtree-mainline: e763d135707241dc1eb8ec9ea919550b3f17fef6 git-subtree-split: 13f29ce5f74bba0376e04189e757cb9718cf2f93
This commit is contained in:
32
client-playbook/roles/application-wireguard/tasks/main.yml
Normal file
32
client-playbook/roles/application-wireguard/tasks/main.yml
Normal file
@@ -0,0 +1,32 @@
|
||||
- name: install wireguard
|
||||
pacman:
|
||||
name: wireguard-tools
|
||||
state: present
|
||||
|
||||
- name: create set-mtu.service
|
||||
copy:
|
||||
src: set-mtu.service
|
||||
dest: /etc/systemd/system/set-mtu.service
|
||||
notify: restart set-mtu.service
|
||||
|
||||
- name: create set-mtu.sh
|
||||
template:
|
||||
src: set-mtu.sh.j2
|
||||
dest: /usr/local/bin/set-mtu.sh
|
||||
notify: restart set-mtu.service
|
||||
|
||||
- name: create wireguard-ip.conf
|
||||
copy:
|
||||
src: "wireguard-ip.conf"
|
||||
dest: /etc/sysctl.d/wireguard-ip.conf
|
||||
owner: root
|
||||
group: root
|
||||
notify: reload sysctl configuration
|
||||
|
||||
- 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
|
||||
notify: restart wireguard
|
Reference in New Issue
Block a user