mirror of
https://github.com/sobolevn/git-secret
synced 2024-11-06 15:20:36 +00:00
e7653af7db
that we see only with 'gnupg-git-[debian|ubuntu]' kitchen configs with ansible < 2.5.0.0
29 lines
836 B
Bash
Executable File
29 lines
836 B
Bash
Executable File
#!/bin/sh
|
|
## Script is sepcifically for use on travis-ci
|
|
|
|
set -e
|
|
|
|
## This is an example setup script that you would encapsulate the installation
|
|
# What version of avm setup to use
|
|
echo "Setting up Ansible Version Manager"
|
|
AVM_VERSION="v1.0.0"
|
|
## Install Ansible 2.3.1 using pip and label it 'v2.3'
|
|
export ANSIBLE_VERSIONS_0="2.3.1.0"
|
|
export INSTALL_TYPE_0="pip"
|
|
export ANSIBLE_LABEL_0="v2.3"
|
|
## Install Ansible 2.5.X using pip and label it 'v2.5'
|
|
export ANSIBLE_VERSIONS_1="2.5.0.0"
|
|
export INSTALL_TYPE_1="pip"
|
|
export ANSIBLE_LABEL_1="v2.5"
|
|
# Whats the default version
|
|
export ANSIBLE_DEFAULT_VERSION="v2.5"
|
|
|
|
## Create a temp dir to download avm
|
|
avm_dir="$(mktemp -d 2> /dev/null || mktemp -d -t 'mytmpdir')"
|
|
git clone https://github.com/ahelal/avm.git "${avm_dir}" > /dev/null 2>&1
|
|
|
|
## Run the setup
|
|
/bin/sh ${avm_dir}/setup.sh
|
|
|
|
exit 0
|