use command instead of shell as recommended
This commit is contained in:
parent
0b715e82e6
commit
be9fab2fc3
1 changed files with 2 additions and 2 deletions
|
@ -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 \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue