Repos with recipes to deploy some infrastructure services
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

19 lignes
535 B

  1. ---
  2. # The sleep in the restart "PowerDNS Recursor handler"
  3. # is needed to make sure to start correctly the service
  4. # after stopping it during restarts
  5. - name: restart PowerDNS Recursor
  6. service:
  7. name: "{{ pdns_rec_service_name }}"
  8. state: restarted
  9. sleep: 1
  10. when: pdns_rec_service_state != 'stopped' and
  11. not pdns_rec_disable_handlers
  12. - name: reload systemd and restart PowerDNS Recursor
  13. command: systemctl daemon-reload
  14. notify: restart PowerDNS Recursor
  15. when: not pdns_rec_disable_handlers