diff --git a/playbooks/include/vm-create.yml b/playbooks/include/vm-create.yml index d2a6e63..07876df 100644 --- a/playbooks/include/vm-create.yml +++ b/playbooks/include/vm-create.yml @@ -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 \