main.yml 335 B

1234567891011121314151617181920
  1. ---
  2. - name: Test radvd and reload
  3. command: radvd --configtest
  4. notify: [ 'Reload radvd' ]
  5. - name: Test radvd and restart
  6. command: radvd --configtest
  7. notify: [ 'Restart radvd' ]
  8. - name: Reload radvd
  9. service:
  10. name: 'radvd'
  11. state: 'reloaded'
  12. - name: Restart radvd
  13. service:
  14. name: 'radvd'
  15. state: 'restarted'