mirror of
https://github.com/kubevirt/kubevirt.core.git
synced 2026-07-27 18:04:38 +00:00
- Use uniform way of naming plays, tasks and VMs - Use uniform way of ordering task parameters - Use defaults where possible - Use CentOS 9 Stream instancetype and preference - Generate SSH private key with empty password (-N "") - Disable strict host key checking - Add .gitignore for test files - Fix skipping test key creation if already existent Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
17 lines
489 B
Bash
Executable File
17 lines
489 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eux
|
|
set -o pipefail
|
|
|
|
export ANSIBLE_CALLBACKS_ENABLED=ansible.posix.profile_tasks
|
|
export ANSIBLE_INVENTORY_ENABLED=kubevirt.core.kubevirt
|
|
export ANSIBLE_HOST_KEY_CHECKING=False
|
|
|
|
[ -d files ] || mkdir files
|
|
[ -f files/testkey ] || (ssh-keygen -t ed25519 -C test@test -f files/testkey -N "")
|
|
|
|
ansible-playbook playbook.yml "$@"
|
|
|
|
ansible-inventory -i test.kubevirt.yml -y --list "$@"
|
|
|
|
ansible-playbook verify.yml -i test.kubevirt.yml --private-key=files/testkey "$@"
|