Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add favicon.ico to apache default vhost #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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'