forked from ISTI-ansible-roles/ansible-roles
library/roles/piwik: Fix the piwik package installation. Now the default is to always install the latest version.
This commit is contained in:
parent
ee949621e9
commit
e634df89a0
|
@ -1,6 +1,7 @@
|
|||
---
|
||||
piwik_repo_key: 'https://debian.piwik.org/repository.gpg'
|
||||
piwik_repo: 'deb https://debian.piwik.org/ piwik main'
|
||||
piwik_pkg_state: latest
|
||||
|
||||
piwik_install_archive_cron: True
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
tags: [ 'piwik', 'analytics' ]
|
||||
|
||||
- name: Install the piwik debian repo
|
||||
apt_repository: repo='{{ piwik_repo }}' state=present
|
||||
apt_repository: repo='{{ piwik_repo }}' state=present update_cache=yes
|
||||
tags: [ 'piwik', 'analytics' ]
|
||||
|
||||
- name: Install piwik and some dependencies
|
||||
apt: name={{ item }}
|
||||
apt: name={{ item }} state={{ piwik_pkg_state }} update_cache=yes cache_valid_time=3600
|
||||
with_items: '{{ piwik_pkgs }}'
|
||||
tags: [ 'piwik', 'analytics' ]
|
||||
|
||||
|
@ -24,6 +24,6 @@
|
|||
tags: [ 'piwik', 'analytics' ]
|
||||
|
||||
- name: Create a directory for the fcgi cache
|
||||
file: dest=/var/cache/nginx/fcgicache type=directory owner=piwik
|
||||
file: dest=/var/cache/nginx/fcgicache state=directory owner=piwik
|
||||
when: piwik_under_nginx
|
||||
tags: [ 'piwik', 'analytics' ]
|
||||
|
|
Loading…
Reference in New Issue