strategy: added a space in message (#86373)

* strategy: added a space in message


Signed-off-by: Abhijeet Kasurde <Akasurde@redhat.com>
Co-authored-by: flowerysong <junk+github@flowerysong.com>
pull/84324/head
Abhijeet Kasurde 5 days ago committed by GitHub
parent a3782f0e7d
commit 06fce4e2a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -999,7 +999,7 @@ class StrategyBase:
msg = 'ending role %s for %s' % (task._role.get_name(), target_host.name)
else:
skipped = True
skip_reason += 'continuing role %s for %s' % (task._role.get_name(), target_host.name)
skip_reason += ', continuing role %s for %s' % (task._role.get_name(), target_host.name)
elif meta_action == 'reset_connection':
all_vars = self._variable_manager.get_vars(play=iterator._play, host=target_host, task=task,
_hosts=self._hosts_cache, _hosts_all=self._hosts_cache_all)

@ -0,0 +1,5 @@
- debug:
msg: "Testing end_role on host {{ inventory_hostname }}"
- meta: end_role
when: end_role_cond == '2'

@ -79,3 +79,10 @@ ansible-playbook -i inventory_refresh.yml refresh_preserve_dynamic.yml "$@"
# test rc when end_host in the rescue section
ANSIBLE_FORCE_HANDLERS=0 ansible-playbook test_end_host_rescue_rc.yml
# test end_role meta task
for test_strategy in linear free; do
out="$(ansible-playbook test_end_role.yml -i inventory.yml -e test_strategy=$test_strategy -e end_role_cond=1 -vv "$@")"
grep -q "META: end_role conditional evaluated to False," <<< "$out"
done

@ -0,0 +1,6 @@
- name: Testing end_role with strategy {{ test_strategy | default('linear') }}
hosts: testhost:testhost2
gather_facts: no
strategy: "{{ test_strategy | default('linear') }}"
roles:
- end_role_sample
Loading…
Cancel
Save