Switch to using our brand-spankin new ansible-env container
This commit is contained in:
parent
5830511d87
commit
a75b835388
@ -1,13 +1,9 @@
|
||||
image: ubuntu:focal
|
||||
image: rehashedsalt/ansible-env:bleeding
|
||||
stages:
|
||||
- lint
|
||||
- test
|
||||
- play
|
||||
before_script:
|
||||
# Get the packages we need
|
||||
- apt-get update
|
||||
- apt-get install gnupg openssh-client python3-cryptography python3-docker python3-pip python-is-python3 wget -y
|
||||
- pip install ansible ansible-lint pynetbox
|
||||
# Dump our key
|
||||
- eval $(ssh-agent -s)
|
||||
- echo "$ANSIBLE_SSH_KEY" | tr -d '\r' | ssh-add -
|
||||
@ -17,19 +13,11 @@ before_script:
|
||||
- touch /vaultpw
|
||||
- chmod 0600 /vaultpw
|
||||
- echo "$ANSIBLE_VAULT_PASSWORD" > /vaultpw
|
||||
# Dump the Netbox key
|
||||
- touch private.pem
|
||||
- chmod 0600 private.pem
|
||||
- echo "$NETBOX_USER_KEY" > private.pem
|
||||
# Fix perms on the playbook root
|
||||
- chmod -R 0750 .
|
||||
# Join the Zerotier management network
|
||||
- |
|
||||
[ -n "$ZEROTIER_NETWORK_ID" ] && \
|
||||
wget -qO - https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg | apt-key add - && \
|
||||
echo "deb http://download.zerotier.com/debian/buster buster main" >> /etc/apt/sources.list && \
|
||||
apt-get update && \
|
||||
apt-get install zerotier-one -y && \
|
||||
service zerotier-one start && \
|
||||
sleep 5 && \
|
||||
zerotier-cli join "$ZEROTIER_NETWORK_ID" && \
|
||||
|
Loading…
Reference in New Issue
Block a user