summaryrefslogtreecommitdiff
path: root/test/lib/ansible_test/_util/target/setup/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/lib/ansible_test/_util/target/setup/bootstrap.sh')
-rw-r--r--test/lib/ansible_test/_util/target/setup/bootstrap.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_util/target/setup/bootstrap.sh b/test/lib/ansible_test/_util/target/setup/bootstrap.sh
index b1be84366e..732c122a04 100644
--- a/test/lib/ansible_test/_util/target/setup/bootstrap.sh
+++ b/test/lib/ansible_test/_util/target/setup/bootstrap.sh
@@ -427,6 +427,9 @@ bootstrap()
install_ssh_keys
customize_bashrc
+ # allow tests to detect ansible-test bootstrapped instances, as well as the bootstrap type
+ echo "${bootstrap_type}" > /etc/ansible-test.bootstrap
+
case "${bootstrap_type}" in
"docker") bootstrap_docker ;;
"remote") bootstrap_remote ;;