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
|
state: present
|
||||||
update_cache: true
|
update_cache: true
|
||||||
|
|
||||||
- block:
|
- name: Ensure the required directories exist
|
||||||
- name: Ensure the required directories exist
|
file:
|
||||||
file:
|
dest: "{{ wireguard_config_path }}/{{ item }}"
|
||||||
dest: "{{ wireguard_config_path }}/{{ item }}"
|
state: directory
|
||||||
state: directory
|
recurse: true
|
||||||
recurse: true
|
with_items:
|
||||||
with_items:
|
- private
|
||||||
- private
|
- public
|
||||||
- public
|
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
become: no
|
become: false
|
||||||
|
|
||||||
- name: Generate keys
|
- name: Generate keys
|
||||||
import_tasks: keys.yml
|
import_tasks: keys.yml
|
||||||
|
@ -34,6 +33,11 @@
|
||||||
notify: restart wireguard
|
notify: restart wireguard
|
||||||
tags: update-users
|
tags: update-users
|
||||||
|
|
||||||
|
- name: WireGuard reload-module-on-update
|
||||||
|
file:
|
||||||
|
dest: /etc/wireguard/.reload-module-on-update
|
||||||
|
state: touch
|
||||||
|
|
||||||
- name: WireGuard users config generated
|
- name: WireGuard users config generated
|
||||||
template:
|
template:
|
||||||
src: client.conf.j2
|
src: client.conf.j2
|
||||||
|
|
Loading…
Add table
Reference in a new issue