Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
syncontent
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Web Essentials Jira
Web Essentials Jira
Labels
Merge Requests
0
Merge Requests
0
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Visay Keo
syncontent
Commits
d45adaad
Commit
d45adaad
authored
Jun 19, 2017
by
Ratha Heang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[BUGFIX] Format variable with ansible 2.x
parent
e0da4743
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
12 additions
and
12 deletions
+12
-12
CHANGELOG
CHANGELOG
+1
-0
ansible/roles/database/tasks/flow_db_dump.yml
ansible/roles/database/tasks/flow_db_dump.yml
+1
-1
ansible/roles/database/tasks/typo3.yml
ansible/roles/database/tasks/typo3.yml
+1
-1
ansible/roles/rsync/tasks/flow.yml
ansible/roles/rsync/tasks/flow.yml
+3
-3
ansible/roles/rsync/tasks/typo3.yml
ansible/roles/rsync/tasks/typo3.yml
+6
-7
No files found.
CHANGELOG
View file @
d45adaad
...
@@ -5,6 +5,7 @@ CHANGELOG
...
@@ -5,6 +5,7 @@ CHANGELOG
-------
-------
- [BUGFIX] Create tmp directory for local db storage
- [BUGFIX] Create tmp directory for local db storage
- [BUGFIX] Format variable with ansible 2.x
3.0.9
3.0.9
-----
-----
...
...
ansible/roles/database/tasks/flow_db_dump.yml
View file @
d45adaad
...
@@ -36,4 +36,4 @@
...
@@ -36,4 +36,4 @@
-
name
:
Search and replace content in database dump
-
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 }}"
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({})
}}"
ansible/roles/database/tasks/typo3.yml
View file @
d45adaad
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
-
name
:
Search and replace content in database dump
-
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 }}"
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
when
:
not from_cache|bool
-
name
:
Drop local database
-
name
:
Drop local database
...
...
ansible/roles/rsync/tasks/flow.yml
View file @
d45adaad
...
@@ -3,18 +3,18 @@
...
@@ -3,18 +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
:
data_dir.flow
with_items
:
'
{{
data_dir.flow
}}'
-
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
:
data_dir.flow
with_items
:
'
{{
data_dir.flow
}}'
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
:
data_dir.flow
with_items
:
'
{{
data_dir.flow
}}'
ansible/roles/rsync/tasks/typo3.yml
View file @
d45adaad
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +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
:
data_dir.typo3
with_items
:
'
{{
data_dir.typo3
}}'
-
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
...
@@ -11,12 +11,11 @@
...
@@ -11,12 +11,11 @@
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
:
data_dir.typo3
with_items
:
'
{{
data_dir.typo3
}}'
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
local_action
:
synchronize src="/tmp/{{ ssh_user }}/{{ item }}"
local_action
:
shell rsync --delay-updates -F -z --delete-after -a --out-format='<<CHANGED>>%i %n%L' \
dest="{{ local_path }}/{{ item }}"
--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_ \
delete=yes
/tmp/{{ ssh_user }}/{{ item }} {{ local_path }}/{{ item }}
rsync_opts="--exclude=.gitkeep --exclude=_temp_ --exclude=_processed_"
with_items
:
"
{{
data_dir.typo3
}}"
with_items
:
data_dir.typo3
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment