openstack-ansible-os_rally/tasks/post-install.yml
Travis Truman 7b26715562 Cleanup/standardize usage of tags
The numerous tags within the role have been condensed
to two tags: rally-install and rally-config

These tags have been chosen as they are namespaced
and cover the two major functions of the role.

Change-Id: I781eb1edc8ea1d8bb093a579b9bb88498ed2d534
2016-08-20 09:35:17 -04:00

37 lines
1.2 KiB
YAML

---
# Copyright 2016, Comcast Corporation
#
# 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 Rally config
config_template:
src: "rally.conf.j2"
dest: "{{ rally_etc_directory }}/rally.conf"
owner: "{{ rally_system_user_name }}"
group: "{{ rally_system_group_name }}"
mode: "0644"
config_overrides: "{{ rally_config_overrides }}"
config_type: "ini"
- name: Check for existing Rally deployment
command: "{{ rally_bin }}/rally deployment list"
ignore_errors: true
register: rally_deployment_list_result
- name: Setup the Rally deployment
shell: |
. /root/openrc
{{ rally_bin }}/rally deployment create --fromenv --name=existing
when:
- rally_deployment_list_result.stdout | search("There are no deployments")