]> git.somenet.org - root/pub/somesible.git/blob - roles/base/wireguard/tasks/main.yml
roles/server/nginx/vhost-unified
[root/pub/somesible.git] / roles / base / wireguard / tasks / main.yml
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>
6 #
7 ---
8 - name: install wireguard
9   apt:
10     pkg:
11     - wireguard
12     state: present
13     policy_rc_d: 101
14   when: setup_wireguard | bool
15   tags: "online"
16   ignore_errors: "{{ignore_online_errors | bool}}"
17
18
19 - include_tasks: wireguard_interface.yml
20   with_items: "{{wireguard_interfaces}}"
21   loop_control:
22     loop_var: wg
23   when: setup_wireguard | bool