diff options
author | shuai chen <chenshuai@huawei.com> | 2015-12-15 10:48:10 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-12-15 10:48:10 +0000 |
commit | 25cf6081b5cef33aec03fe76093dd7b87d11c249 (patch) | |
tree | 848a6ba02e920e8a1b87ab2a34ca048232efee7a /deploy/adapters/ansible/roles/database/tasks/mongodb.yml | |
parent | 0bf472e8826fe526516b141b124bc7b77cbd9541 (diff) | |
parent | d31ab14e9c9fb8cb715fea4a468c71ae8b11dc5e (diff) |
Merge "disable NetworkManager on centos"
Diffstat (limited to 'deploy/adapters/ansible/roles/database/tasks/mongodb.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/database/tasks/mongodb.yml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/database/tasks/mongodb.yml b/deploy/adapters/ansible/roles/database/tasks/mongodb.yml index c5e1d6d1..ada7f7ef 100644 --- a/deploy/adapters/ansible/roles/database/tasks/mongodb.yml +++ b/deploy/adapters/ansible/roles/database/tasks/mongodb.yml @@ -21,7 +21,10 @@ - /var/lib/mongodb/journal/* - name: manually restart mongodb server - service: name={{ mongodb_service }} state=restarted + service: name={{ mongodb_service }} state=restarted enabled=yes + +- name: write mongodb to monitor list + lineinfile: dest=/opt/service create=yes line={{ mongodb_service}} - wait_for: port=27017 delay=3 timeout=60 host={{ internal_vip.ip }} |