Няма описание
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.

12345678910111213141516171819202122
  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: state=directory path=/var/www/autoconfig group=www-data owner=www-data
  8. - name: Create directory holding the autoconfig XML file
  9. file: state=directory path=/var/www/autoconfig/mail group=www-data owner=www-data
  10. - name: Create the autoconfig XML file
  11. template: src=var_www_autoconfig_mail_config-v1.1.j2 dest=/var/www/autoconfig/mail/config-v1.1.xml group=www-data owner=www-data
  12. - name: Configure the mail autoconfiguration virtualhost
  13. template: src=etc_apache2_sites-available_autoconfig.j2 dest=/etc/apache2/sites-available/autoconfig.conf group=root owner=root
  14. notify: restart apache
  15. - name: Enable the mail autoconfiguration virtualhost
  16. command: a2ensite autoconfig.conf creates=/etc/apache2/sites-enabled/autoconfig.conf
  17. notify: restart apache