]> arthur.barton.de Git - AnsibleRoles.git/blobdiff - roles/piwik/tasks/main.yml
Update "apt" tasks to use lists
[AnsibleRoles.git] / roles / piwik / tasks / main.yml
index ef58553ec9a105e05f212e41b4d211205628c2dd..00e8239efdbdf7f0d4837ad43ed86d726c7f01d2 100644 (file)
@@ -5,12 +5,12 @@
   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
@@ -50,7 +50,7 @@
     - 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