Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
d5ae98c1
Commit
d5ae98c1
authored
9 years ago
by
arbabnazar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the check that tanaguru app is running
parent
1be3305c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
playbooks/roles/tanaguru/tasks/deploy.yml
+8
-0
No files found.
playbooks/roles/tanaguru/tasks/deploy.yml
View file @
d5ae98c1
...
@@ -102,6 +102,12 @@
...
@@ -102,6 +102,12 @@
state
:
present
state
:
present
with_items
:
tanaguru_parameters
with_items
:
tanaguru_parameters
-
name
:
Check that tanaguru app is running
shell
:
>
/bin/ps aux | grep -i tanaguru
register
:
tanaguru_app
changed_when
:
no
-
name
:
Install the TanaGuru
-
name
:
Install the TanaGuru
shell
:
>
shell
:
>
/bin/echo "yes" | ./install.sh --mysql-tg-user "{{ item.tanaguru_db_user }}" \
/bin/echo "yes" | ./install.sh --mysql-tg-user "{{ item.tanaguru_db_user }}" \
...
@@ -117,5 +123,6 @@
...
@@ -117,5 +123,6 @@
args
:
args
:
chdir
:
"
~/{{
tanaguru_download_link
|
basename
|
regex_replace('.tar.gz$',
'')
}}"
chdir
:
"
~/{{
tanaguru_download_link
|
basename
|
regex_replace('.tar.gz$',
'')
}}"
with_items
:
tanaguru_parameters
with_items
:
tanaguru_parameters
when
:
"
tanaguru_app.stdout.find('/etc/tanaguru/')
==
-1"
notify
:
notify
:
-
restart tomcat6
-
restart tomcat6
\ No newline at end of file
This diff is collapsed.
Click to expand it.
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