From be9fab2fc3fef21a0448476779d11fc76b424810 Mon Sep 17 00:00:00 2001 From: Timo Makinen Date: Thu, 23 May 2019 21:24:53 +0300 Subject: [PATCH] use command instead of shell as recommended --- playbooks/include/vm-create.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 \