Files
openstack-ansible-rabbitmq_…/tasks/rabbitmq_set_cookie.yml
Jean-Philippe Evrard fd498ad456 Fix usage of "|" for tests
With the more recent versions of ansible, we should now use
"is" instead of the "|" sign for the tests.

This should fix it.

Change-Id: I70c853d9aba11eb91ab25f7a29417d0ec50fdf3d
2018-07-18 02:46:46 +00:00

35 lines
953 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: Set rabbit cookie
copy:
content: "{{ rabbitmq_cookie_token }}"
dest: /var/lib/rabbitmq/.erlang.cookie
mode: "0400"
owner: rabbitmq
group: rabbitmq
register: cookie_set
- include: rabbitmq_stopped.yml
static: no
when:
- cookie_set is changed
- include: rabbitmq_started.yml
static: no
when:
- cookie_set is changed