Ei kuvausta
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

autoconfig.yml 1018B

1234567891011121314151617181920212223242526272829303132333435363738
  1. ---
  2. #
  3. # Autoconfig XML file for email clients
  4. # https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Autoconfiguration
  5. #
  6. - name: Create directory for mail autoconfiguration virtualhost
  7. file:
  8. state=directory
  9. path=/var/www/autoconfig
  10. owner=root
  11. group=www-data
  12. - name: Create directory holding the autoconfig XML file
  13. file:
  14. state=directory
  15. path=/var/www/autoconfig/mail
  16. owner=root
  17. group=www-data
  18. - name: Create the autoconfig XML file
  19. template:
  20. src=var_www_autoconfig_mail_config-v1.1.j2
  21. dest=/var/www/autoconfig/mail/config-v1.1.xml
  22. owner=root
  23. group=www-data
  24. - name: Configure the mail autoconfiguration virtualhost
  25. template:
  26. src=etc_apache2_sites-available_autoconfig.j2
  27. dest=/etc/apache2/sites-available/autoconfig.conf
  28. owner=root
  29. group=root
  30. notify: restart apache
  31. - name: Enable the mail autoconfiguration virtualhost
  32. command: a2ensite autoconfig.conf creates=/etc/apache2/sites-enabled/autoconfig.conf
  33. notify: restart apache