diff options
author | carey.xu <carey.xuhan@huawei.com> | 2015-12-17 18:16:12 +0800 |
---|---|---|
committer | carey.xu <carey.xuhan@huawei.com> | 2015-12-25 13:18:21 +0800 |
commit | bb31ed2d10f1876a50353abb258c2a5be13e2da2 (patch) | |
tree | 7e716df5ccc99bb19b624ff41ffd77cc0e60fb10 /deploy/adapters/ansible/roles/glance/tasks/nfs.yml | |
parent | 21e1b393c0fc7f52c831882b53454877f6942495 (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/glance/tasks/nfs.yml')
-rw-r--r-- | deploy/adapters/ansible/roles/glance/tasks/nfs.yml | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/glance/tasks/nfs.yml b/deploy/adapters/ansible/roles/glance/tasks/nfs.yml index ff72ecb7..758ec082 100644 --- a/deploy/adapters/ansible/roles/glance/tasks/nfs.yml +++ b/deploy/adapters/ansible/roles/glance/tasks/nfs.yml @@ -10,9 +10,13 @@ local_action: file path=/opt/images state=directory mode=0777 run_once: True +- name: remove nfs config item if exist + local_action: lineinfile dest=/etc/exports state=absent + regexp="^/opt/images" + run_once: True + - name: update nfs config local_action: lineinfile dest=/etc/exports state=present - regexp="/opt/images *(rw,insecure,sync,all_squash)" line="/opt/images *(rw,insecure,sync,all_squash)" run_once: True |