mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2024-11-10 07:53:29 +01:00
Made the vhost.conf filename configurable
This commit is contained in:
parent
2dfd2026ef
commit
5eeace69bb
3 changed files with 5 additions and 4 deletions
|
@ -25,6 +25,7 @@ apache_ssl_protocol: "All -SSLv2 -SSLv3"
|
|||
apache_ssl_cipher_suite: "AES256+EECDH:AES256+EDH"
|
||||
|
||||
apache_vhosts_version: "2.2"
|
||||
apache_vhosts_filename: "vhosts.conf"
|
||||
|
||||
apache_mods_enabled:
|
||||
- rewrite.load
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
- name: Add apache vhosts configuration.
|
||||
template:
|
||||
src: "vhosts-{{ apache_vhosts_version }}.conf.j2"
|
||||
dest: "{{ apache_conf_path }}/sites-available/vhosts.conf"
|
||||
dest: "{{ apache_conf_path }}/sites-available/{{ apache_vhosts_filename }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
@ -28,7 +28,7 @@
|
|||
|
||||
- name: Add vhost symlink in sites-enabled.
|
||||
file:
|
||||
src: "{{ apache_conf_path }}/sites-available/vhosts.conf"
|
||||
dest: "{{ apache_conf_path }}/sites-enabled/vhosts.conf"
|
||||
src: "{{ apache_conf_path }}/sites-available/{{ apache_vhosts_filename }}"
|
||||
dest: "{{ apache_conf_path }}/sites-enabled/{{ apache_vhosts_filename }}"
|
||||
state: link
|
||||
when: apache_create_vhosts
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
- name: Add apache vhosts configuration.
|
||||
template:
|
||||
src: "vhosts-{{ apache_vhosts_version }}.conf.j2"
|
||||
dest: "{{ apache_conf_path }}/vhosts.conf"
|
||||
dest: "{{ apache_conf_path }}/{{ apache_vhosts_filename }}"
|
||||
owner: root
|
||||
group: root
|
||||
mode: 0644
|
||||
|
|
Loading…
Reference in a new issue