Stop managing NFS mount destinations

Systemd mount role now takes care of creating mount destinations
so there is no reason to handle this manually.

In addition to that, if user/group were not provided explicitly to the
ones set for NFS export, role was failing with permission denied
during re-run

Change-Id: Ib158e14c6f296795bb1f6eabdcfc23b80cbcd871
This commit is contained in:
Dmitriy Rabotyagov
2021-12-09 15:56:17 +02:00
committed by Dmitriy Rabotyagov
parent ebe439abb4
commit 0af66c540f

View File

@@ -43,15 +43,6 @@
createhome: "yes" createhome: "yes"
home: "{{ glance_system_user_home }}" home: "{{ glance_system_user_home }}"
- name: Create glance NFS mount point(s)
file:
path: "{{ item.local_path }}"
state: directory
mode: "0755"
owner: "{{ item.owner | default(glance_system_user_name) }}"
group: "{{ item.group | default(glance_system_group_name) }}"
with_items: "{{ glance_nfs_client }}"
# NOTE(cloudnull): During an upgrade the local directory may exist on a source # NOTE(cloudnull): During an upgrade the local directory may exist on a source
# install. If the directory does exist it will need to be # install. If the directory does exist it will need to be
# removed. This is required on source installs because the # removed. This is required on source installs because the