Fix noninteractive Ansible deployment and record delivery gates
This commit is contained in:
@@ -23,6 +23,14 @@ docker compose version
|
||||
trivy --version
|
||||
pip-audit --version
|
||||
ssh -i "$DEPLOY_KEY" -o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o "UserKnownHostsFile=$DEPLOY_KNOWN_HOSTS" deploy@147.182.178.136 'id; sudo -n true; python3 --version; sudo -n docker --version; sudo -n docker compose version; free -m; nproc; df -h /'
|
||||
# Exercise Ansible's own SSH/become path as well as plain SSH. Its default
|
||||
# PTY request is incompatible with the intentionally restricted deploy key.
|
||||
export ANSIBLE_HOST_KEY_CHECKING=True
|
||||
export ANSIBLE_PRIVATE_KEY_FILE="$DEPLOY_KEY"
|
||||
export ANSIBLE_SSH_ARGS="-o BatchMode=yes -o IdentitiesOnly=yes -o StrictHostKeyChecking=yes -o UserKnownHostsFile=$DEPLOY_KNOWN_HOSTS"
|
||||
ansible all -i '147.182.178.136,' -u deploy --become \
|
||||
-e '{"ansible_ssh_use_tty":false,"ansible_python_interpreter":"/usr/bin/python3"}' \
|
||||
-m ansible.builtin.command -a 'id -u'
|
||||
} > build/preflight/tools-and-target.txt
|
||||
cat build/preflight/tools-and-target.txt
|
||||
'''
|
||||
|
||||
Reference in New Issue
Block a user