mirror of
https://github.com/trailofbits/algo.git
synced 2025-09-02 18:13:13 +02:00
reload-module-on-update and syntax fix
This commit is contained in:
parent
b800066180
commit
0353a7a117
1 changed files with 14 additions and 10 deletions
|
@ -10,17 +10,16 @@
|
|||
state: present
|
||||
update_cache: true
|
||||
|
||||
- block:
|
||||
- name: Ensure the required directories exist
|
||||
file:
|
||||
dest: "{{ wireguard_config_path }}/{{ item }}"
|
||||
state: directory
|
||||
recurse: true
|
||||
with_items:
|
||||
- private
|
||||
- public
|
||||
- name: Ensure the required directories exist
|
||||
file:
|
||||
dest: "{{ wireguard_config_path }}/{{ item }}"
|
||||
state: directory
|
||||
recurse: true
|
||||
with_items:
|
||||
- private
|
||||
- public
|
||||
delegate_to: localhost
|
||||
become: no
|
||||
become: false
|
||||
|
||||
- name: Generate keys
|
||||
import_tasks: keys.yml
|
||||
|
@ -34,6 +33,11 @@
|
|||
notify: restart wireguard
|
||||
tags: update-users
|
||||
|
||||
- name: WireGuard reload-module-on-update
|
||||
file:
|
||||
dest: /etc/wireguard/.reload-module-on-update
|
||||
state: touch
|
||||
|
||||
- name: WireGuard users config generated
|
||||
template:
|
||||
src: client.conf.j2
|
||||
|
|
Loading…
Add table
Reference in a new issue