summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/common
diff options
context:
space:
mode:
authorcarey.xu <carey.xuhan@huawei.com>2015-12-17 18:16:12 +0800
committercarey.xu <carey.xuhan@huawei.com>2015-12-25 13:18:21 +0800
commitbb31ed2d10f1876a50353abb258c2a5be13e2da2 (patch)
tree7e716df5ccc99bb19b624ff41ffd77cc0e60fb10 /deploy/adapters/ansible/roles/common
parent21e1b393c0fc7f52c831882b53454877f6942495 (diff)
deploy mongodb as cluster for HA
JIRA: COMPASS-207 Change-Id: I1069bcc2d0dd97dd6a4c7bb61351be993d86b33a Signed-off-by: carey.xu <carey.xuhan@huawei.com>
Diffstat (limited to 'deploy/adapters/ansible/roles/common')
-rw-r--r--deploy/adapters/ansible/roles/common/tasks/main.yml9
1 files changed, 9 insertions, 0 deletions
diff --git a/deploy/adapters/ansible/roles/common/tasks/main.yml b/deploy/adapters/ansible/roles/common/tasks/main.yml
index da114631..1276429d 100644
--- a/deploy/adapters/ansible/roles/common/tasks/main.yml
+++ b/deploy/adapters/ansible/roles/common/tasks/main.yml
@@ -54,6 +54,11 @@
shell: hwclock --systohc
ignore_errors: True
+- name: create fireball keys dir
+ file: path=~/.fireball.keys state=directory mode=0700
+ delegate_to: 127.0.0.1
+ run_once: true
+
- name: restart services
service: name={{ item }} state=restarted enabled=yes
with_items: services| union(services_noarch)
@@ -61,3 +66,7 @@
- name: write services to monitor list
lineinfile: dest=/opt/service create=yes line='{{ item }}'
with_items: services| union(services_noarch)
+
+- name: kill daemon for accelerate
+ shell: lsof -ni :5099|grep LISTEN|awk '{print $2}'|xargs kill -9
+ ignore_errors: true