forked from evolix/ansible-roles
add virsh list --all on kvm host and this neighbor
This commit is contained in:
parent
4fb885a33b
commit
21bd4021d3
|
@ -43,6 +43,6 @@
|
||||||
state: present
|
state: present
|
||||||
special_time: "daily"
|
special_time: "daily"
|
||||||
user: root
|
user: root
|
||||||
job: "virsh list --all | ssh {{ hostvars[item]['ansible_hostname'] }} 'cat >/root/libvirt-{{ inventory_hostname }}/virsh-list.txt'"
|
job: "virsh list --all | tee /root/virsh-list.txt | ssh {{ hostvars[item]['ansible_hostname'] }} 'cat >/root/libvirt-{{ inventory_hostname }}/virsh-list.txt'"
|
||||||
loop: "{{ groups['hypervisors'] }}"
|
loop: "{{ groups['hypervisors'] }}"
|
||||||
when: item != inventory_hostname
|
when: item != inventory_hostname
|
||||||
|
|
Loading…
Reference in a new issue