Infra_mgmt/roles/wireguard/tasks/init.yml

15 lines
313 B
YAML
Raw Permalink Normal View History

2023-03-01 22:52:00 +01:00
- name: Create required dirs
ansible.builtin.file:
path: "{{ item }}"
mode: 0755
state: directory
loop:
- "{{ wireguard_dir }}"
- "{{ wireguard_clients_dir }}"
- name: Install WireGuard
ansible.builtin.apt:
name: "{{ wireguard_packages }}"
update_cache: true
state: present