Files
openstack-ansible-openstack…/tasks/openstack_release.yml
Jesse Pretorius dde8effbd0 Make the release file options more configurable
Downstream deployers may want not to deploy the
/etc/openstack-release file, or to customise the
contents.

This patch makes the file drop optional, but also
makes the contents more configurable.

Change-Id: I549a23f2f08dfb97ca8daa36f00437d927de30a5
2016-12-07 12:32:54 +00:00

29 lines
948 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: Drop openstack release file
template:
src: "openstack-release.j2"
dest: "{{ openstack_distrib_file_path }}"
owner: "root"
group: "root"
when: openstack_distrib_file | bool
- name: Remove legacy openstack release file
file:
path: "{{ openstack_distrib_file_path }}"
state: absent
when: not openstack_distrib_file | bool