see if this syntax change makes ansible 2.2 happy
This commit is contained in:
parent
6d1e65fcdb
commit
377afa042d
1 changed files with 3 additions and 3 deletions
|
@ -131,19 +131,19 @@
|
|||
owner: "{{ libvirt_user }}"
|
||||
group: "{{ libvirt_user }}"
|
||||
when: item.hostname not in result.list_vms
|
||||
with_items: clients
|
||||
with_items: "{{ clients }}"
|
||||
become: true
|
||||
become_user: "{{ libvirt_user }}"
|
||||
|
||||
- name: ensure the guest lvs are created
|
||||
lvol: lv={{ item.hostname }} vg={{ volgroup }} size={{ item.lvm_size }} state=present
|
||||
when: item.hostname not in result.list_vms
|
||||
with_items: clients
|
||||
with_items: "{{ clients }}"
|
||||
|
||||
- name: ensure vms are defined
|
||||
command: "virsh define --file /home/{{ libvirt_user }}/{{ item.hostname }}.libvirt.xml"
|
||||
when: item.hostname not in result.list_vms
|
||||
with_items: clients
|
||||
with_items: "{{ clients }}"
|
||||
become: true
|
||||
become_user: "{{ libvirt_user }}"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue