Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
844 B

---
- name: Remove uneeded files
file: path={{ matomo_root_dir }}/{{ item }} state=absent
with_items:
- web/vendor/maxmind-db/reader/autoload.php
tags: matomo
- name: Remove temp files
file: path={{ matomo_root_dir }}/tmp/{{ item }} state=absent
with_items:
- matomo
- "How to install Matomo.html"
- matomo-{{ matomo_version }}.tar.gz
- matomo.sql
tags: matomo
- name: Remove plugins archives
file: path={{ matomo_root_dir }}/tmp/{{ item }}-{{ matomo_plugins[item].version }}.zip state=absent
with_items: "{{ matomo_plugins.keys() | list }}"
tags: matomo
- name: Remove obsolete files
file: path={{ item }} state=absent
loop:
- /etc/backup/pre.d/matomo_{{ matomo_id }}_pre-backup
- /etc/backup/post.d/matomo_{{ matomo_id }}_post-backup
- "{{ matomo_root_dir }}/db_dumps"
tags: matomo