mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-12-22 02:50:19 +01:00
Adjust Apache mod enabling on Debian/Ubuntu.
This commit is contained in:
parent
917b9edbc7
commit
ca4e5f8cfe
2 changed files with 7 additions and 2 deletions
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue