Generate reproducer script for tripleo_overcloud_node_provision

Most of the options were present, but not the actual task. Let's correct
this!

Change-Id: I271129d96637e8c76dae0c74959bbc681e0e1613
This commit is contained in:
Cédric Jeanneret 2020-07-29 09:53:56 +02:00
parent d724d69f5a
commit 7977e21a2a
2 changed files with 11 additions and 1 deletions

View File

@ -5,6 +5,7 @@ tripleo_overcloud_node_provision_concurrency:
tripleo_overcloud_node_provision_debug: false tripleo_overcloud_node_provision_debug: false
tripleo_overcloud_node_provision_deployment_file: tripleo_overcloud_node_provision_deployment_file:
tripleo_overcloud_node_provision_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}" tripleo_overcloud_node_provision_generate_scripts: "{{ tripleo_generate_scripts | default(False) }}"
tripleo_overcloud_node_provision_generate_scripts_only: "{{ tripleo_generate_scripts_only | default(False) }}"
tripleo_overcloud_node_provision_home_dir: "{{ ansible_env.HOME }}" tripleo_overcloud_node_provision_home_dir: "{{ ansible_env.HOME }}"
tripleo_overcloud_node_provision_log: "{{ tripleo_overcloud_node_provision_home_dir }}/overcloud_node_provision.log" tripleo_overcloud_node_provision_log: "{{ tripleo_overcloud_node_provision_home_dir }}/overcloud_node_provision.log"
tripleo_overcloud_node_provision_log_combine: true tripleo_overcloud_node_provision_log_combine: true

View File

@ -40,6 +40,13 @@
debug: debug:
var: _provision_env var: _provision_env
- name: Write reproducer script
tripleo_shell_script:
dest: "{{ tripleo_overcloud_node_provision_home_dir }}/tripleo_overcloud_node_provision.sh"
shell_command: "{{ _provision_cmd }}"
shell_environment: "{{ _provision_env }}"
when: tripleo_overcloud_node_provision_generate_scripts|bool
- name: overcloud node provision - name: overcloud node provision
shell: "{{ _provision_cmd }}" # noqa 305 shell: "{{ _provision_cmd }}" # noqa 305
environment: "{{ _provision_env }}" environment: "{{ _provision_env }}"
@ -51,7 +58,9 @@
async: "{{ tripleo_overcloud_node_provision_timeout }}" async: "{{ tripleo_overcloud_node_provision_timeout }}"
poll: "{{ tripleo_overcloud_node_provision_poll }}" poll: "{{ tripleo_overcloud_node_provision_poll }}"
changed_when: false changed_when: false
when: not ansible_check_mode|bool when:
- not ansible_check_mode|bool
- not tripleo_overcloud_node_provision_generate_scripts_only|bool
- name: Set output fact - name: Set output fact