openstack-ansible/playbooks/roles/os_glance/handlers/main.yml
Andy McCrae c19915251f Fix glance_nfs_client setting
glance_nfs_client adds 2 fstab entries, with then handler entry being
incorrectly ordered (src and name are the wrong way around).

This patch removes the redundant handler and moves the existing fstab
task to use the "mount" module which will add the entry to fstab and
ensure the filesystems are mounted.

Additionally this fixes a documentation bug where an incorrect variable
is referenced (glance_nfs_mounts).

Change-Id: I6e0f964d4279800d31119f380a239e2c4ae61cb5
Fixes-Bug: #1477081
2015-07-23 00:28:19 +00:00

34 lines
975 B
YAML

---
# Copyright 2014, Rackspace US, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
- name: Restart glance api
service:
name: "glance-api"
state: "restarted"
pattern: "glance-api"
- name: Restart glance registry
service:
name: "glance-registry"
state: "restarted"
pattern: "glance-registry"
- name: Restart glance services
service:
name: "{{ item }}"
state: "restarted"
pattern: "{{ item }}"
with_items: glance_service_names