Include needed scripts

This commit is contained in:
nemunaire 2023-03-15 22:16:43 +01:00
commit 8ead2bc0fe
4 changed files with 35 additions and 1 deletions

View file

@ -15,11 +15,29 @@
state: directory
# 3. Install others scripts
- name: configure wg-adlin
copy:
src: "/etc/wireguard/wg-adlin.conf"
dest: "/var/lib/lxc/{{ ctr_name }}/rootfs/etc/wg-adlin.conf"
remote_src: true
tags:
- wireguard
- name: Copy wg-sync.sh
copy:
src: "wg-sync.sh"
dest: "/var/lib/lxc/{{ ctr_name }}/rootfs/root/wg-sync.sh"
mode: 0755
tags:
- wireguard
- name: Retrieve clean-wg.sh
get_url:
url: https://git.nemunai.re/teach/adlin/raw/branch/master/token-validator/clean-wg.sh
dest: "/var/lib/lxc/{{ ctr_name }}/rootfs/usr/sbin/clean-wg.sh"
mode: 0755
tags:
- wireguard
- name: Add update-adlin script
template: