vmcheck: Make vm_ansible_inline more verbose
Because otherwise, there's no way to see the output of the script. Also, turn off `gather_facts` since in the majority of cases, we don't need it, so let's avoid the overhead. We can make this an opt-in flag later on if needed. Closes: #1304 Approved by: cgwalters
This commit is contained in:
parent
aaf2c30807
commit
3e39fda4aa
@ -41,10 +41,11 @@ vm_ansible_inline() {
|
||||
cat > ${playbook} <<EOF
|
||||
---
|
||||
- hosts: ${VM}
|
||||
gather_facts: no
|
||||
tasks:
|
||||
EOF
|
||||
sed -e 's,^, ,' >> ${playbook}
|
||||
ansible-playbook -i ${VM}, --ssh-common-args "${SSHOPTS}" ${playbook}
|
||||
ansible-playbook -vi ${VM}, --ssh-common-args "${SSHOPTS}" ${playbook}
|
||||
rm -f ${playbook}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user