--- - when: "'shared_file_system' in refstack_target_programs" block: - name: Copy python script for parsing tempest.conf copy: src: parse_ini_get_tempestconf_overrides.py dest: "{{ refstack_client_source }}/parse_ini_get_tempestconf_overrides.py" - name: Parse share config from tempest_admin.conf shell: | python3 ./parse_ini_get_tempestconf_overrides.py \ backend_names,enable_protocols,multitenancy_enabled,multi_backend \ share \ etc/tempest_admin.conf register: share_tempestconf_overrides args: chdir: "{{ refstack_client_source }}" - name: Form share overrides for tempestconf set_fact: share_tempestconf_overrides: "{{ share_tempestconf_overrides.stdout_lines }}" - name: Generate tempest configuration script template: src: generate-tempestconf.sh.j2 dest: "{{ refstack_client_source }}/generate-tempestconf.sh" mode: 0744 - name: Generate tempest configuration file shell: | ./generate-tempestconf.sh args: chdir: "{{ refstack_client_source }}" executable: /bin/bash changed_when: tempest_config_path is not defined - name: Cat generated tempest.conf file shell: | cat ./etc/tempest.conf args: executable: /bin/bash chdir: "{{ refstack_client_source }}" changed_when: false - name: Set path to newly generated tempest.conf set_fact: path_to_tempest_config: "{{ refstack_client_source }}/etc/tempest.conf"