Commit 4ecc1221 authored by Visay Keo's avatar Visay Keo

[IMP] Set data directory list to sync in variable

parent e5608dba
CHANGELOG CHANGELOG
========= =========
3.0-dev
-------
- [IMP] Set data directory list to sync in variable
3.0.6 3.0.6
----- -----
......
--- ---
# defaults file for rsync # defaults file for rsync
data_dir:
flow:
- Data/Persistent/
typo3:
- web/fileadmin/
- web/typo3conf/l10n/
- web/uploads/
...@@ -3,21 +3,18 @@ ...@@ -3,21 +3,18 @@
- name: Make sure local temp directory exists - name: Make sure local temp directory exists
local_action: file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory local_action: file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory
with_items: with_items: data_dir.flow
- Data/Persistent/
- name: Sync flow persistent data from remote server to local temp - name: Sync flow persistent data from remote server to local temp
synchronize: mode=pull synchronize: mode=pull
src="{{ remote_path }}/{{ item }}" src="{{ remote_path }}/{{ item }}"
dest="/tmp/{{ ssh_user }}/{{ item }}" dest="/tmp/{{ ssh_user }}/{{ item }}"
delete=yes delete=yes
with_items: with_items: data_dir.flow
- Data/Persistent/
when: not from_cache|bool when: not from_cache|bool
- name: Sync flow persistent data from local temp to working directory - name: Sync flow persistent data from local temp to working directory
local_action: synchronize src="/tmp/{{ ssh_user }}/{{ item }}" local_action: synchronize src="/tmp/{{ ssh_user }}/{{ item }}"
dest="{{ local_path }}/{{ item }}" dest="{{ local_path }}/{{ item }}"
delete=yes delete=yes
with_items: with_items: data_dir.flow
- Data/Persistent/
...@@ -3,10 +3,7 @@ ...@@ -3,10 +3,7 @@
- name: Make sure local temp directory exists - name: Make sure local temp directory exists
local_action: file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory local_action: file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory
with_items: with_items: data_dir.typo3
- web/fileadmin/
- web/typo3conf/l10n/
- web/uploads/
- name: Sync typo3 data from remote server to local temp - name: Sync typo3 data from remote server to local temp
synchronize: mode=pull synchronize: mode=pull
...@@ -14,10 +11,7 @@ ...@@ -14,10 +11,7 @@
dest="/tmp/{{ ssh_user }}/{{ item }}" dest="/tmp/{{ ssh_user }}/{{ item }}"
delete=yes delete=yes
rsync_opts="--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_" rsync_opts="--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_"
with_items: with_items: data_dir.typo3
- web/fileadmin/
- web/typo3conf/l10n/
- web/uploads/
when: not from_cache|bool when: not from_cache|bool
- name: Sync typo3 data from local temp to working directory - name: Sync typo3 data from local temp to working directory
...@@ -25,7 +19,4 @@ ...@@ -25,7 +19,4 @@
dest="{{ local_path }}/{{ item }}" dest="{{ local_path }}/{{ item }}"
delete=yes delete=yes
rsync_opts="--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_" rsync_opts="--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_"
with_items: with_items: data_dir.typo3
- web/fileadmin/
- web/typo3conf/l10n/
- web/uploads/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment