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
e2d7a45b
Commit
e2d7a45b
authored
Mar 14, 2017
by
Naseath Saly
Committed by
Visay Keo
Mar 16, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK] Update to support ansible 2.2
parent
0bbd4ef7
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
22 additions
and
14 deletions
+22
-14
CHANGELOG
CHANGELOG
+6
-0
README.md
README.md
+1
-1
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
+6
-5
ansible/roles/rsync/tasks/typo3.yml
ansible/roles/rsync/tasks/typo3.yml
+7
-6
No files found.
CHANGELOG
View file @
e2d7a45b
...
...
@@ -4,6 +4,12 @@ CHANGELOG
3.1-dev
-------
-
3.1.2
-----
- [TASK] Update to support ansible 2.2
- [BUGFIX] Fix syncontent error with Neos3 on Read remote database info
3.1.1
...
...
README.md
View file @
e2d7a45b
...
...
@@ -9,7 +9,7 @@ This is requires that your Flow Framework / Neos CMS installation is configured
(see https://github.com/Sebobo/Shel.DockerFlow) or your TYPO3 installation is configured to run with
`dockertypo3`
package (see https://github.com/visay/DockerTYPO3) and all containers are started before executing the sync.
Ansible is needed on your local machine.
Ansible is needed on your local machine
(support from 1.9 up to 2.2)
.
## Installation
...
...
ansible/roles/database/tasks/flow_db_dump.yml
View file @
e2d7a45b
...
...
@@ -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({})
}}"
ansible/roles/database/tasks/typo3.yml
View file @
e2d7a45b
...
...
@@ -7,7 +7,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
...
...
ansible/roles/rsync/tasks/flow.yml
View file @
e2d7a45b
...
...
@@ -2,8 +2,10 @@
# tasks file for rsync
-
name
:
Make sure local temp directory exists
local_action
:
file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory
with_items
:
"
{{
data_dir.flow
}}"
local_action
:
file path="{{ item[0] }}/{{ item[1] }}" state=directory
with_nested
:
-
[
"
/tmp/{{
ssh_user
}}"
,
"
{{
local_path
}}"
]
-
"
{{
data_dir.flow
}}"
-
name
:
Sync flow persistent data from remote server to local temp
synchronize
:
mode=pull
...
...
@@ -14,7 +16,6 @@
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
local_action
:
shell rsync --delay-updates -F -z --delete-after -a --out-format='<<CHANGED>>%i %n%L' \
/tmp/{{ ssh_user }}/{{ item }} {{ local_path }}/{{ item }}
with_items
:
"
{{
data_dir.flow
}}"
ansible/roles/rsync/tasks/typo3.yml
View file @
e2d7a45b
...
...
@@ -2,8 +2,10 @@
# tasks file for rsync
-
name
:
Make sure local temp directory exists
local_action
:
file path="/tmp/{{ ssh_user }}/{{ item }}" state=directory
with_items
:
"
{{
data_dir.typo3
}}"
local_action
:
file path="{{ item[0] }}/{{ item[1] }}" state=directory
with_nested
:
-
[
"
/tmp/{{
ssh_user
}}"
,
"
{{
local_path
}}"
]
-
"
{{
data_dir.typo3
}}"
-
name
:
Sync typo3 data from remote server to local temp
synchronize
:
mode=pull
...
...
@@ -15,8 +17,7 @@
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_"
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
}}"
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