|
@@ -304,3 +304,15 @@
|
|
|
|
|
|
- name: Docker up nginx
|
|
|
command: "docker-compose up -d nginx"
|
|
|
+
|
|
|
+- name: "Clear all cache. Tag=clear_cache_all"
|
|
|
+ hosts: 127.0.0.1
|
|
|
+ connection: local
|
|
|
+ tags: clear_cache_all
|
|
|
+ tasks:
|
|
|
+ - name: "Clear all cache"
|
|
|
+ command: "rm -rf /opt/flowdat/{{ item }}/var/cache/*/"
|
|
|
+ with_items: "{{ lookup('env', 'MODULES_INSTALL').split(',') }}"
|
|
|
+ - name: "Chmod cache"
|
|
|
+ command: "chmod 777 -R /opt/flowdat/{{ item }}/var/cache"
|
|
|
+ with_items: "{{ lookup('env', 'MODULES_INSTALL').split(',') }}"
|