mail done
This commit is contained in:
@@ -24,14 +24,22 @@
|
||||
name: wireguard
|
||||
state: present
|
||||
|
||||
- name: Down wg0
|
||||
changed_when: true
|
||||
ansible.builtin.command: wg-quick down wg0
|
||||
|
||||
- name: Copy wg0.conf
|
||||
ansible.builtin.template:
|
||||
src: wg0.conf.j2
|
||||
dest: /etc/wireguard/wg0.conf
|
||||
mode: '0600'
|
||||
|
||||
- name: Start service
|
||||
ansible.builtin.service:
|
||||
name: wg-quick@wg0
|
||||
state: restarted
|
||||
enabled: true
|
||||
- name: Up wg0
|
||||
changed_when: true
|
||||
ansible.builtin.command: wg-quick up wg0
|
||||
|
||||
# - name: Start service
|
||||
# ansible.builtin.service:
|
||||
# name: wg-quick@wg0
|
||||
# state: restarted
|
||||
# enabled: true
|
||||
|
||||
Reference in New Issue
Block a user