#!/bin/bash {{ ansible_managed | comment }} if [[ $# = 0 ]]; then echo "Invalid number of arguments" >&2 exit 1 fi case $1 in master) systemctl start zebra.service systemctl start bgpd.service ;; backup | fault) systemctl stop zebra.service systemctl stop bgpd.service ;; *) echo "Invalid argument" >&2 exit 1 esac