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
4971ba95
Commit
4971ba95
authored
Feb 04, 2016
by
Visay Keo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[TASK] Allow search replace in db content for Neos
parent
3e15d5d2
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
2 deletions
+11
-2
CHANGELOG
CHANGELOG
+5
-0
README.md
README.md
+2
-2
ansible/roles/database/tasks/flow_db_dump.yml
ansible/roles/database/tasks/flow_db_dump.yml
+4
-0
No files found.
CHANGELOG
View file @
4971ba95
CHANGELOG
=========
3.0.8
-----
- [TASK] Allow search replace in db content for Neos
3.0.7
-----
...
...
README.md
View file @
4971ba95
...
...
@@ -173,10 +173,10 @@ To do that, create a file called `main.yml` in `ansible/roles/database/defaults/
replacement:
1:
search: live-domain.com
replace: local-
site:8080
replace: local-
domain
2:
search: live-domain2.net
replace: domain2.local-
site:8080
replace: domain2.local-
domain
```
`replacement`, `search` and `replace` are keyword but for `1` and `2` you can use any strings to define your content type.
...
...
ansible/roles/database/tasks/flow_db_dump.yml
View file @
4971ba95
...
...
@@ -33,3 +33,7 @@
-
name
:
Sync remote database dump to local temp
synchronize
:
mode=pull src="/{{ remote_dump }}/{{ db_name.stdout }}.sql" dest="/tmp/{{ ssh_user }}/db_dump.sql"
-
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({})
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