Commit d45adaad authored by Ratha Heang's avatar Ratha Heang

[BUGFIX] Format variable with ansible 2.x

parent e0da4743
......@@ -5,6 +5,7 @@ CHANGELOG
-------
- [BUGFIX] Create tmp directory for local db storage
- [BUGFIX] Format variable with ansible 2.x
3.0.9
-----
......
......@@ -36,4 +36,4 @@
- name: Search and replace content in database dump
local_action: replace dest="/tmp/{{ ssh_user }}/db_dump.sql" regexp="{{ item.value.search }}" replace="{{ item.value.replace }}"
with_dict: replacement | default({})
with_dict: "{{ replacement | default({}) }}"
......@@ -19,7 +19,7 @@
- name: Search and replace content in database dump
local_action: replace dest="/tmp/{{ ssh_user }}/db_dump.sql" regexp="{{ item.value.search }}" replace="{{ item.value.replace }}"
with_dict: replacement | default({})
with_dict: "{{ replacement | default({}) }}"
when: not from_cache|bool
- name: Drop local database
......
......@@ -3,18 +3,18 @@
- name: Make sure local temp directory exists
local_action: file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory
with_items: data_dir.flow
with_items: '{{ data_dir.flow }}'
- name: Sync flow persistent data from remote server to local temp
synchronize: mode=pull
src="{{ remote_path }}/{{ item }}"
dest="/tmp/{{ ssh_user }}/{{ item }}"
delete=yes
with_items: data_dir.flow
with_items: '{{ data_dir.flow }}'
when: not from_cache|bool
- name: Sync flow persistent data from local temp to working directory
local_action: synchronize src="/tmp/{{ ssh_user }}/{{ item }}"
dest="{{ local_path }}/{{ item }}"
delete=yes
with_items: data_dir.flow
with_items: '{{ data_dir.flow }}'
......@@ -3,7 +3,7 @@
- name: Make sure local temp directory exists
local_action: file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory
with_items: data_dir.typo3
with_items: '{{ data_dir.typo3 }}'
- name: Sync typo3 data from remote server to local temp
synchronize: mode=pull
......@@ -11,12 +11,11 @@
dest="/tmp/{{ ssh_user }}/{{ item }}"
delete=yes
rsync_opts="--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_"
with_items: data_dir.typo3
with_items: '{{ data_dir.typo3 }}'
when: not from_cache|bool
- name: Sync typo3 data from local temp to working directory
local_action: synchronize src="/tmp/{{ ssh_user }}/{{ item }}"
dest="{{ local_path }}/{{ item }}"
delete=yes
rsync_opts="--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_"
with_items: data_dir.typo3
local_action: shell rsync --delay-updates -F -z --delete-after -a --out-format='<<CHANGED>>%i %n%L' \
--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_ \
/tmp/{{ ssh_user }}/{{ item }} {{ local_path }}/{{ item }}
with_items: "{{ data_dir.typo3 }}"
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