No Description
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 1.1KB

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