1 #####################################
2 ### someone's ansible provisioner ###
3 #####################################
4 # Part of: https://git.somenet.org/root/pub/somesible.git
5 # 2017-2024 by someone <someone@somenet.org>
8 - name: copy wireguard interface {{wg}} config
11 dest: "/etc/wireguard/{{wg}}.conf"
16 - "{{lookup('env','PWD')}}/host_files/{{inventory_hostname}}/{{role_name}}/{{wg}}.conf"
17 - "{{lookup('env','PWD')}}/group_files/{{group_files_group}}/{{role_name}}/{{wg}}.conf"
18 - "{{lookup('env','PWD')}}/group_files/all/{{role_name}}/{{wg}}.conf"
19 - "default/{{wg}}.conf"
20 # does not work. Also register + when changed breaks the connections immediately, do not use!
21 #notify: restart wg-quick.target
24 - name: "enable and start wireguard interface wg-quick@{{wg}}.service"
25 include_role: name="base/systemd/enable-and-start"
27 service_name: "wg-quick@{{wg}}.service"