fixes
This commit is contained in:
parent
247d4899db
commit
7f077613d7
2
ping.yml
2
ping.yml
@ -30,6 +30,8 @@
|
||||
ansible.builtin.set_fact:
|
||||
successful_hosts: "{{ successful_hosts | default([]) + ansible_play_batch }}"
|
||||
failed_hosts: "{{ failed_hosts | default([]) + ansible_play_hosts_all | difference(ansible_play_batch) }}"
|
||||
run_once: true # noqa: run-once[task]
|
||||
delegate_to: localhost
|
||||
|
||||
- name: Successful Hosts
|
||||
ansible.builtin.debug:
|
||||
|
@ -1,9 +0,0 @@
|
||||
success_hosts:
|
||||
{% for shost in ansible_play_batch %}
|
||||
- "{{ shost }}"
|
||||
{% endfor %}
|
||||
|
||||
failed_hosts:
|
||||
{% for fhost in ansible_play_hosts_all | difference(ansible_play_batch) %}
|
||||
- "{{ fhost }}"
|
||||
{% endfor %}
|
Loading…
x
Reference in New Issue
Block a user