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.

apache.yml 889B

123456789101112131415161718192021222324
  1. ---
  2. # Configures the Apache HTTP server with sane defaults.
  3. - name: Disable default Apache site
  4. command: a2dissite 000-default removes=/etc/apache2/sites-enabled/000-default
  5. notify: restart apache
  6. - name: Enable Apache headers module
  7. command: a2enmod headers creates=/etc/apache2/mods-enabled/headers.load
  8. notify: restart apache
  9. - name: Set ServerName for Apache
  10. template: src=fqdn.j2 dest=/etc/apache2/conf.d/fqdn
  11. notify: restart apache
  12. when: ansible_distribution_release != 'trusty'
  13. - name: Create ServerName configuration file for Apache for Ubuntu Trusty
  14. template: src=fqdn.j2 dest=/etc/apache2/conf-available/fqdn.conf
  15. when: ansible_distribution_release == 'trusty'
  16. - name: Set ServerName for Apache for Ubuntu Trusty
  17. command: a2enconf fqdn creates=/etc/apache2/conf-enabled/fqdn.conf
  18. notify: restart apache
  19. when: ansible_distribution_release == 'trusty'