Commit d5ae98c1 by arbabnazar

add the check that tanaguru app is running

parent 1be3305c
...@@ -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
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