--- # 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" tags: - rally-config - name: Check for existing Rally deployment command: "{{ rally_bin }}/rally deployment list" ignore_errors: true register: rally_deployment_list_result tags: - rally-deployment-setup - 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") tags: - rally-deployment-setup