diff options
author | shuai chen <chenshuai@huawei.com> | 2016-02-24 07:41:29 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2016-02-24 07:41:29 +0000 |
commit | e38c1a6d08b10ea81d208bd40b9df1a13d28db8c (patch) | |
tree | 44beff459154f239469579882e559c2027649d95 /deploy/adapters/ansible/roles/database/tasks/mongodb_install.yml | |
parent | 3eab3cd722870e6c02ee1337d3536dc68f89b13e (diff) | |
parent | e72bc045fd467a442a0ffb1c78e710a270a59dfa (diff) |
Merge "Support version Liberty of OpenStack for CENTOS7"
Diffstat (limited to 'deploy/adapters/ansible/roles/database/tasks/mongodb_install.yml')
-rwxr-xr-x | deploy/adapters/ansible/roles/database/tasks/mongodb_install.yml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/deploy/adapters/ansible/roles/database/tasks/mongodb_install.yml b/deploy/adapters/ansible/roles/database/tasks/mongodb_install.yml index 4eb91560..dea15a83 100755 --- a/deploy/adapters/ansible/roles/database/tasks/mongodb_install.yml +++ b/deploy/adapters/ansible/roles/database/tasks/mongodb_install.yml @@ -19,17 +19,18 @@ template: src=mongodb.conf dest=/opt/os_templates backup=yes - name: update mongodb config file - shell: crudini --merge /etc/mongodb.conf < /opt/os_templates/mongodb.conf + shell: crudini --merge {{ mongodb_config.dest }} < /opt/os_templates/mongodb.conf - name: rm prealloc files file: dest: "{{ item }}" state: absent with_fileglob: - - /var/lib/mongodb/journal/* + - "{{ mongodb_config.journal }}" - name: manually restart mongodb server service: name={{ mongodb_service }} state=restarted enabled=yes + ignore_errors: true - name: write mongodb to monitor list lineinfile: dest=/opt/service create=yes line={{ mongodb_service}} |