forked from evolix/ansible-roles
kvm-host: add missing default value
This commit is contained in:
parent
5153b88d01
commit
9e27d9707b
|
@ -13,6 +13,7 @@ The **patch** part changes is incremented if multiple releases happen the same m
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
* evolinux-base: option to bypass raid-related tasks
|
* evolinux-base: option to bypass raid-related tasks
|
||||||
|
* kvm-host: add missing default value
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,6 @@
|
||||||
---
|
---
|
||||||
kvm_custom_libvirt_images_path: ''
|
kvm_custom_libvirt_images_path: ''
|
||||||
kvm_install_drbd: True
|
kvm_install_drbd: True
|
||||||
kvm_scripts_dir: /usr/local/sbin
|
kvm_scripts_dir: /usr/local/sbin
|
||||||
|
|
||||||
|
kvm_pair: null
|
|
@ -34,7 +34,11 @@
|
||||||
special_time: "hourly"
|
special_time: "hourly"
|
||||||
user: root
|
user: root
|
||||||
job: "rsync -a --delete /etc/libvirt/qemu/*xml {{ hostvars[kvm_pair]['lan.ip'] }}:/root/libvirt-{{ inventory_hostname }}/"
|
job: "rsync -a --delete /etc/libvirt/qemu/*xml {{ hostvars[kvm_pair]['lan.ip'] }}:/root/libvirt-{{ inventory_hostname }}/"
|
||||||
when: kvm_pair != inventory_hostname
|
when:
|
||||||
|
- kvm_pair is defined
|
||||||
|
- kvm_pair is not none
|
||||||
|
- kvm_pair | length > 0
|
||||||
|
- kvm_pair != inventory_hostname
|
||||||
tags: crontab
|
tags: crontab
|
||||||
|
|
||||||
- name: Crontab for sync list of running vm
|
- name: Crontab for sync list of running vm
|
||||||
|
@ -44,5 +48,9 @@
|
||||||
special_time: "daily"
|
special_time: "daily"
|
||||||
user: root
|
user: root
|
||||||
job: "virsh list --all | tee /root/virsh-list.txt | ssh {{ hostvars[kvm_pair]['lan.ip'] }} 'cat >/root/libvirt-{{ inventory_hostname }}/virsh-list.txt'"
|
job: "virsh list --all | tee /root/virsh-list.txt | ssh {{ hostvars[kvm_pair]['lan.ip'] }} 'cat >/root/libvirt-{{ inventory_hostname }}/virsh-list.txt'"
|
||||||
when: kvm_pair != inventory_hostname
|
when:
|
||||||
|
- kvm_pair is defined
|
||||||
|
- kvm_pair is not none
|
||||||
|
- kvm_pair | length > 0
|
||||||
|
- kvm_pair != inventory_hostname
|
||||||
tags: crontab
|
tags: crontab
|
||||||
|
|
Loading…
Reference in a new issue