Commit 63eb406c authored by nanahira's avatar nanahira

add another playbook for restart

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