use command instead of shell as recommended

This commit is contained in:
Timo Makinen 2019-05-23 21:24:53 +03:00
parent 0b715e82e6
commit be9fab2fc3

View file

@ -36,7 +36,7 @@
when: inventory_hostname not in result.list_vms
- name: generate root password
shell: "/srv/ansible/scripts/genpasswd {{ inventory_hostname }}"
command: "/srv/ansible/scripts/genpasswd {{ inventory_hostname }}"
register: root_password
delegate_to: localhost
when: inventory_hostname not in result.list_vms
@ -55,7 +55,7 @@
when: inventory_hostname not in result.list_vms
- name: run virt-install
shell: >
command: >
virt-install --connect {{ vmhost_uri }} \
--name {{ inventory_hostname }} \
--graphics none --boot useserial=on --serial pty --noautoconsole \