Commit 700e80c0 authored by nanahira's avatar nanahira

add clean wg gen1

parent 346e4cd4
...@@ -2,6 +2,23 @@ ...@@ -2,6 +2,23 @@
- hosts: wg - hosts: wg
become: true become: true
tasks: tasks:
- name: clean network gen1
shell: 'wg-quick down {{item}}'
ignore_errors: true
with_items:
- wg0
- wgmc
- qcloud
- name: clean network gen1
systemd:
name: 'wg-quick@{{item}}'
state: stopped
enabled: false
ignore_errors: true
with_items:
- wg0
- wgmc
- qcloud
- name: post scripts - name: post scripts
template: template:
src: scripts/{{item}}.sh.j2 src: scripts/{{item}}.sh.j2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment