mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-24 13:50:22 -07:00
Initial ansible-test implementation. (#18556)
This commit is contained in:
parent
d95eac16eb
commit
6bbd92e422
191 changed files with 5483 additions and 48 deletions
18
test/runner/setup/docker.sh
Normal file
18
test/runner/setup/docker.sh
Normal file
|
@ -0,0 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
# Support images with only python3 installed.
|
||||
if [ ! -f /usr/bin/python ] && [ -f /usr/bin/python3 ]; then
|
||||
ln -s /usr/bin/python3 /usr/bin/python
|
||||
fi
|
||||
if [ ! -f /usr/bin/pip ] && [ -f /usr/bin/pip3 ]; then
|
||||
ln -s /usr/bin/pip3 /usr/bin/pip
|
||||
fi
|
||||
|
||||
# Improve prompts on remote host for interactive use.
|
||||
cat << EOF > ~/.bashrc
|
||||
alias ls='ls --color=auto'
|
||||
export PS1='\[\e]0;\u@\h: \w\a\]\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||
cd ~/ansible/
|
||||
EOF
|
Loading…
Add table
Add a link
Reference in a new issue