Skip to content

Commit

Permalink
apache2_common_site_template/default_site_template:
Browse files Browse the repository at this point in the history
The variable should better contain the module name. I at first tought
about default_site_template_apache2 since this variable is doing
something quite different than the other ones. Now I renamed it to
apache2_common_site_template.

Feel free to suggest something else.
  • Loading branch information
LarsKollstedt committed Jan 29, 2020
1 parent f846a3d commit b116c03
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ apache2_certs_path: /etc/ssl/certs
apache2_keys_path: /etc/ssl/private
# template to render sites from if no template is configured in apache2_sites...template
default_site_template: etc/apache2/sites-available/site.j2
apache2_common_site_template: etc/apache2/sites-available/site.j2
```

Expand Down
2 changes: 1 addition & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,4 @@ apache2_certs_path: /etc/ssl/certs
apache2_keys_path: /etc/ssl/private

# template to render sites from if no template is configured in apache2_sites...template
default_site_template: etc/apache2/sites-available/site.j2
apache2_common_site_template: etc/apache2/sites-available/site.j2
2 changes: 1 addition & 1 deletion tasks/manage_sites.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

- name: Creating sites
template:
src: "{{ item.template|default(default_site_template) }}"
src: "{{ item.template|default(apache2_common_site_template) }}"
dest: "/etc/apache2/sites-available/{{ item.id }}.conf"
owner: root
group: root
Expand Down

0 comments on commit b116c03

Please sign in to comment.