@ -5,6 +5,18 @@
# So we don't break the MaxFailPercentage feature since these plays can't use
# Ansible strategies.
- hosts : localhost
name : Check if required variables are defined
tasks:
- fail:
msg : deploy_source_host variable is not defined
when : deploy_source_host is not defined
- fail:
msg : deploy_target_host variable is not defined
when : deploy_target_host is not defined
# Keep in mind that you will still need to use defaults in order to be
# able to pass Ansible own syntax check for blocks like 'hosts'.
- hosts : all
name : Clear cached facts
# We don't want to gather facts, just clear them
@ -14,7 +26,7 @@
tags:
- facts
- hosts : "{{ deploy_source_host }}:{{ deploy_target_host }}"
- hosts : "{{ deploy_source_host | default([]) }}:{{ deploy_target_host | default([]) }}"
name : Gather facts
strategy : tripleo_free
gather_facts : true
@ -35,12 +47,12 @@
any_errors_fatal : false
ignore_unreachable : true
tasks:
- include_vars : global_vars.yaml
- include_vars: global_vars.yaml # noqa : missing-import
no_log : true
tags:
- always
- hosts : "{{ deploy_target_host }}"
- hosts : "{{ deploy_target_host | default([]) }}"
name : Render all_nodes data as group_vars for overcloud
gather_facts : "{{ gather_facts | default(false) }}"
# we don't skip errors or ignore unreachable on this one because it's
@ -57,7 +69,7 @@
- facts
- always
- hosts : "{{ deploy_target_host }}"
- hosts : "{{ deploy_target_host | default([]) }}"
name : Set all_nodes data as group_vars for overcloud
gather_facts : "{{ gather_facts | default(false) }}"
any_errors_fatal : false