Skip to content

Commit

Permalink
make template file configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
Frank Mueller committed Sep 2, 2016
1 parent 0b7cd35 commit f3ac2f1
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tasks/configure-Debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tasks/configure-RedHat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tasks/configure-Solaris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tasks/configure-Suse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f3ac2f1

Please sign in to comment.