mirror of
https://github.com/geerlingguy/ansible-role-apache
synced 2025-01-03 00:30:18 +01:00
Merge pull request #105 from sysinit/master
make template file configurable
This commit is contained in:
commit
5817624949
5 changed files with 5 additions and 4 deletions
|
@ -7,6 +7,7 @@ apache_listen_port_ssl: 443
|
|||
|
||||
apache_create_vhosts: true
|
||||
apache_vhosts_filename: "vhosts.conf"
|
||||
apache_vhosts_template: "vhosts.conf.j2"
|
||||
|
||||
# On Debian/Ubuntu, a default virtualhost is included in Apache's configuration.
|
||||
# Set this to `true` to remove that default.
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
- name: Add apache vhosts configuration.
|
||||
template:
|
||||
src: "vhosts.conf.j2"
|
||||
src: "{{ apache_vhosts_template }}"
|
||||
dest: "{{ apache_conf_path }}/sites-available/{{ apache_vhosts_filename }}"
|
||||
owner: root
|
||||
group: root
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
- name: Add apache vhosts configuration.
|
||||
template:
|
||||
src: "vhosts.conf.j2"
|
||||
src: "{{ apache_vhosts_template }}"
|
||||
dest: "{{ apache_conf_path }}/{{ apache_vhosts_filename }}"
|
||||
owner: root
|
||||
group: root
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
- name: Add apache vhosts configuration.
|
||||
template:
|
||||
src: "vhosts.conf.j2"
|
||||
src: "{{ apache_vhosts_template }}"
|
||||
dest: "{{ apache_conf_path }}/{{ apache_vhosts_filename }}"
|
||||
owner: root
|
||||
group: root
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
|
||||
- name: Add apache vhosts configuration.
|
||||
template:
|
||||
src: "vhosts.conf.j2"
|
||||
src: "{{ apache_vhosts_template }}"
|
||||
dest: "{{ apache_conf_path }}/{{ apache_vhosts_filename }}"
|
||||
owner: root
|
||||
group: root
|
||||
|
|
Loading…
Reference in a new issue