I841743fb6c2c24e4a3d86598f99322022b27804d introduced a sort of "dry-run" capability to the operators, but it didn't take care of the possible exposure of the shell stdout in a fact. Thus, if you enabled the generate_scripts_only feature, your ansible run would fail on the exposure, since the variable it refers to will not exist. Change-Id: I07225e6b82199cf15860e55db6995c994da65931
tripleo_container_image_prepare_default
A role to generate the default container image prepare information.
Requirements
None.
Role Variables
tripleo_container_image_prepare_default_debug: (Boolean) Flag to print out the push command. Default: Falsetripleo_container_image_prepare_default_enable_registry_login: (Boolean) Flag to enable registry login on nodes if credentials are provided. Default: falsetripleo_container_image_prepare_default_home_dir: (String) Home directory for the undercloud user. Default: "{{ ansible_env.HOME }}"tripleo_container_image_prepare_default_local_push_destination: (Boolean) Include a push_Destination to trigger upload to a local registry on the undercloud. Default: falsetripleo_container_image_prepare_default_output_env_file: (String) File to write environment file containing default ContainerImagePrepare value. When not set,tripleo_container_image_prepare_default_outputwill contain yaml defining ContainerImagePrepare. Default is not set.
Output Variables
tripleo_container_image_prepare_default_output: (String) YAML defining a default ContainerImagePrepare value.tripleo_container_image_prepare_default_result: Ansible execution results
Dependencies
None.
Example Playbook
Example container prepare default execution playbook
- hosts: undercloud
gather_facts: true
tasks:
- name: Generate default ContainerImagePrepare
import_role:
name: tripleo_container_image_prepare_default
vars:
tripleo_container_image_prepare_output_env_file: /home/stack/container-image-prepare.yaml
License
Apache-2.0