
* Decouple few tasks from generate-tempestconf-file-cloud role to a new role named edit-clouds-yaml-file in order to be able to use this logic multiple times. * Add a new role, which creates clouds.yaml file - usefull when a module requires an authentication and an environment doesn't have one (f.e. packstack) Change-Id: I133529857c2b095c2183aa544dc0e45a48b9f34c
24 lines
579 B
YAML
24 lines
579 B
YAML
- name: Cat clouds.yaml file
|
|
shell: |
|
|
set -ex
|
|
cat {{ clouds_file_path }}
|
|
ignore_errors: True
|
|
args:
|
|
executable: /bin/bash
|
|
|
|
- name: Workaround for AUTH URL in clouds.yaml
|
|
replace:
|
|
path: "{{ clouds_file_path }}"
|
|
regexp: "auth_url:.*"
|
|
replace: "auth_url: http://{{ ansible_default_ipv4.address }}/identity/v3"
|
|
become: true
|
|
ignore_errors: True
|
|
|
|
- name: Cat edited clouds.yaml file
|
|
shell: |
|
|
set -ex
|
|
cat {{ clouds_file_path }}
|
|
ignore_errors: True
|
|
args:
|
|
executable: /bin/bash
|