Fix block commands in setup script

This commit is contained in:
Salt 2021-07-31 20:34:09 -05:00
parent 3281a7ca71
commit 5392d28949

View File

@ -20,7 +20,8 @@ before_script:
# Fix perms on the playbook root # Fix perms on the playbook root
- chmod -R 0750 . - chmod -R 0750 .
# Join the Zerotier management network # Join the Zerotier management network
- [ -n "$ZEROTIER_NETWORK_ID" ] && \ - |
[ -n "$ZEROTIER_NETWORK_ID" ] && \
wget -qO - https://raw.githubusercontent.com/zerotier/ZeroTierOne/master/doc/contact%40zerotier.com.gpg | apt-key add - && \ 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 && \ echo "deb http://download.zerotier.com/debian/buster buster main" >> /etc/apt/sources.list && \
apt update && \ apt update && \
@ -32,7 +33,8 @@ before_script:
# Get ready for execution # Get ready for execution
- ansible-galaxy install -r roles/requirements.yml -p roles - ansible-galaxy install -r roles/requirements.yml -p roles
after_script: after_script:
- [ -n "$ZEROTIER_NETWORK_ID" ] && \ - |
[ -n "$ZEROTIER_NETWORK_ID" ] && \
zerotier-cli leave "$ZEROTIER_NETWORK_ID" zerotier-cli leave "$ZEROTIER_NETWORK_ID"
Lint: Lint: