Adjust Apache mod enabling on Debian/Ubuntu.

This commit is contained in:
Jeff Geerling 2014-04-23 09:49:55 -05:00
parent 917b9edbc7
commit ca4e5f8cfe
2 changed files with 7 additions and 2 deletions

View file

@ -32,6 +32,11 @@ Add a set of properties per virtualhost, including `servername` (required), `doc
Note that this role doesn't configure SSL support out of the box; you would need to add in additional tasks to listen on port 443 and add your own VirtualHost directives for SSL. This may be improved in the future :)
apache_mods_enabled:
- rewrite.load
(Debian/Ubuntu ONLY) Which Apache mods to enable (these will be symlinked into the apporopriate location). See the `mods-available` directory inside the apache configuration directory (`/etc/apache2/mods-available` by default) for all the available mods.
## Dependencies
None.

View file

@ -24,8 +24,8 @@
- name: Enable Apache mods.
file: >
src=/etc/apache2/mods-available/{{ item }}
dest=/etc/apache2/mods-enabled/{{ item }}
src={{ apache_server_root }}/mods-available/{{ item }}
dest={{ apache_server_root }}/mods-enabled/{{ item }}
state=link
with_items: apache_mods_enabled
notify: restart apache