tags:
- docker
- packages
- apt: >
- name={{ item }}
- state=installed
- with_items:
- - apt-transport-https
- - ca-certificates
+ apt:
+ name: [
+ 'apt-transport-https',
+ 'ca-certificates',
+ ]
+ state: present
when: piwik_apt_repository.startswith("https://")
- name: install Piwik repository GnuPG key
- meta: flush_handlers
tags:
- - piwik
- - packages
+ - apt
- name: install "piwik"
tags:
+ - apt
- piwik
- packages
apt: >
name=piwik
- state=installed
+ state=present
- name: install Piwik configuration
tags:
owner=root
path=/usr/share/piwik/piwik.js
+- name: remove README.md.gz, to make self-check happy
+ tags:
+ - piwik
+ file: >
+ state=absent
+ path=/usr/share/doc/piwik/README.md.gz
+
- name: install Apache VHost configuration for Piwik
tags:
- piwik
owner=root
src=apache2_piwik_vhost.conf.j2
notify:
- - restart "apache2"
+ - reload "apache2" (graceful)
- name: enable Apache VHost configuration for Piwik
tags:
src=/etc/apache2/sites-available/piwik.conf
state=link
notify:
- - restart "apache2"
+ - reload "apache2" (graceful)
- name: install Piwik PHP configuration
tags: