Commit 8f3b4dad authored by nanahira's avatar nanahira

restart script

parent b6382e14
---
- hosts: wg
vars:
linksToRestart:
- mc-mitsuru
- mc-tc-gzz
- mc-tc-s4
tasks:
- name: restart oc
ignore_errors: true
docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-network/services'
restarted: true
services:
- 'openconnect-{{item}}'
with_items: '{{linksToRestart}}'
- name: restart wg
become: true
ignore_errors: true
systemd:
name: 'wg-quick@{{item}}'
state: restarted
with_items: '{{linksToRestart}}'
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