Commit 63eb406c authored by nanahira's avatar nanahira

add another playbook for restart

parent ea9f396b
......@@ -183,13 +183,13 @@
services:
- bird
when: not noBird
#- name: restart_babeld # ocserv would be always restarted whenever key changes..
# docker_compose:
# project_src: '{{ansible_user_dir}}/nextgen-network/services'
# restarted: true
# services:
# - babeld
# when: not noBird
- name: restart_babeld # ocserv would be always restarted whenever key changes..
docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-network/services'
restarted: true
services:
- babeld
when: not noBird
- name: reload_babeld
shell: cat /tmp/babeld-reload.conf | nc ::1 33123
- name: restart_frps
......@@ -227,11 +227,12 @@
systemd:
name: bird
state: restarted
#- name: restart_babeld_systemd
# become: true
# systemd:
# name: babeld
# state: restarted
- name: restart_babeld_systemd
become: true
systemd:
name: babeld
state: restarted
when: systemBird
- name: reload_chnroute
become: true
shell: |
......
---
- hosts: wg
tasks:
- name: restart_babeld_systemd
become: true
systemd:
name: babeld
state: restarted
when: systemBird
- name: restart_babeld # ocserv would be always restarted whenever key changes..
docker_compose:
project_src: '{{ansible_user_dir}}/nextgen-network/services'
restarted: true
services:
- babeld
when: not noBird
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