main.yml 377 B

123456789101112131415161718
  1. ---
  2. - name: reload systemd
  3. command: systemctl --system daemon-reload
  4. - name: restart netmaster
  5. service:
  6. name: netmaster
  7. state: restarted
  8. when: netmaster_started.changed == false
  9. - name: restart netplugin
  10. service:
  11. name: netplugin
  12. state: restarted
  13. when: netplugin_started.changed == false
  14. - name: Save iptables rules
  15. command: service iptables save