summaryrefslogtreecommitdiffstats
path: root/deploy/adapters/ansible/roles/glance/tasks/nfs.yml
diff options
context:
space:
mode:
authorJustin chi <chigang@huawei.com>2016-10-28 16:08:04 +0000
committerGerrit Code Review <gerrit@opnfv.org>2016-10-28 16:08:04 +0000
commit77c231067d6aef2d1819a2721dd7969d52b17d17 (patch)
treea9c85248c4a8aae9f94d6d4fe02708079c1db847 /deploy/adapters/ansible/roles/glance/tasks/nfs.yml
parentb2f900d52b9316e0be1047282c240d3f1e6b650c (diff)
parent0c03889e4bc5236c841683762d46429310c0dee7 (diff)
Merge "Fix glance images dir mount issue on centos/rhel"
Diffstat (limited to 'deploy/adapters/ansible/roles/glance/tasks/nfs.yml')
-rw-r--r--deploy/adapters/ansible/roles/glance/tasks/nfs.yml3
1 files changed, 2 insertions, 1 deletions
diff --git a/deploy/adapters/ansible/roles/glance/tasks/nfs.yml b/deploy/adapters/ansible/roles/glance/tasks/nfs.yml
index 179229de..482be22e 100644
--- a/deploy/adapters/ansible/roles/glance/tasks/nfs.yml
+++ b/deploy/adapters/ansible/roles/glance/tasks/nfs.yml
@@ -53,7 +53,8 @@
- name: mount image directory
shell: |
- mount -t nfs -onfsvers=3 {{ ip_info.stdout_lines[0] }}:/opt/images /var/lib/glance/images
+ mkdir -p /var/lib/glance/images
+ mount -t nfs -onfsvers=3 {{ ip_info.stdout_lines[0] }}:/opt/images /var/lib/glance/images
sed -i '/\/var\/lib\/glance\/images/d' /etc/fstab
#echo {{ ip_info.stdout_lines[0] }}:/opt/images /var/lib/glance/images/ nfs nfsvers=3 >> /etc/fstab
when: mount_info.stdout.find('images') == -1