Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

40 рядки
1.0 KiB

  1. ---
  2. - name: Remove all mails from john@example.org mailbox
  3. file:
  4. path: /var/vmail/example.org/john
  5. state: absent
  6. - name: Check that all required TCP ports are responding
  7. wait_for:
  8. host: localhost
  9. port: "{{ item }}"
  10. state: started # Port should be open
  11. delay: 0 # No wait before first check (sec)
  12. timeout: 3 # Stop checking after timeout (sec)
  13. ignore_errors: yes
  14. with_items:
  15. - 443
  16. - 80
  17. - 143
  18. - 110
  19. - 25
  20. - 587
  21. - name: Try sending an email to Postfix over SMTP
  22. mail:
  23. host: localhost
  24. port: 25
  25. to: John Smith <john@example.org>
  26. subject: Ansible Test SMTP
  27. body: System {{ ansible_hostname }} has been successfully provisioned.
  28. - name: Try sending an email to Postfix over Submission port
  29. mail:
  30. host: localhost
  31. username: john@example.org
  32. password: summersun
  33. port: 587
  34. to: John Smith <john@example.org>
  35. subject: Ansible Test Submission
  36. body: System {{ ansible_hostname }} has been successfully provisioned.