소스 검색

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