浏览代码

add old restartvpn playbook

Blaine Story 3 月之前
父节点
当前提交
e9f97b19cf
共有 1 个文件被更改,包括 15 次插入0 次删除
  1. 15 0
      plays/restart-vpn.yml.old

+ 15 - 0
plays/restart-vpn.yml.old

@@ -0,0 +1,15 @@
+---
+- hosts: 10.0.0.2
+  become: true
+  gather_facts: false
+
+  tasks:
+    - name: Restart VPN
+      ansible.builtin.systemd_service:
+        name: openvpn@nord
+        state: restarted
+
+    - name: Restart unbound
+      ansible.builtin.systemd_service:
+        name: unbound
+        state: restarted