Skip to content

Commit

Permalink
Add favicon.ico to apache default vhost osm-fr#7
Browse files Browse the repository at this point in the history
  • Loading branch information
psampont committed Jan 12, 2019
1 parent 42bbc31 commit 8e1e726
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
7 changes: 7 additions & 0 deletions roles/common/files/favicon.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# ajoute un favicon dans tous les vhosts

<Location "/favicon.ico">
SetHandler none
</Location>

alias /favicon.ico /var/www/favicon.ico
Binary file added roles/common/files/favicon.ico
Binary file not shown.
7 changes: 7 additions & 0 deletions roles/common/tasks/apache2.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@
notify: restart apache
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

- name: Copy favicon
copy: src=favicon.ico dest=/var/www/favicon.ico owner=www-data group=www-data mode=0644

- name: Install favicon
copy: src=favicon.conf dest=/etc/apache2/conf.d/ owner=root group=root mode=0644
notify: restart apache

- name: check apache configuration
command: apache2ctl configtest
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'

0 comments on commit 8e1e726

Please sign in to comment.