mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 05:45:06 +03:00
CI: make the ansible inventory a directory
Not constraining the inventory to .ini allows us to use dynamic inventory, which is needed for simplifying kubevirt jobs inventory. Also reduces the scope of the ANSIBLE_INVENTORY variable.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
set -euxo pipefail
|
||||
|
||||
cd tests && make delete-${CI_PLATFORM} -s ; cd -
|
||||
make -C tests delete-${CI_PLATFORM} -s
|
||||
|
||||
if [ -d ~/.ara ] ; then
|
||||
tar czvf ${CI_PROJECT_DIR}/cluster-dump/ara.tgz ~/.ara
|
||||
|
||||
@@ -31,8 +31,9 @@ export ANSIBLE_REMOTE_USER=$SSH_USER
|
||||
export ANSIBLE_BECOME=true
|
||||
export ANSIBLE_BECOME_USER=root
|
||||
export ANSIBLE_CALLBACK_PLUGINS="$(python -m ara.setup.callback_plugins)"
|
||||
export ANSIBLE_INVENTORY=${CI_PROJECT_DIR}/inventory/sample/
|
||||
|
||||
cd tests && make create-${CI_PLATFORM} -s ; cd -
|
||||
make -C tests INVENTORY_DIR=${ANSIBLE_INVENTORY} create-${CI_PLATFORM} -s
|
||||
ansible-playbook tests/cloud_playbooks/wait-for-ssh.yml
|
||||
|
||||
# Flatcar Container Linux needs auto update disabled
|
||||
|
||||
Reference in New Issue
Block a user