pipeline: test: image: alpine:latest secrets: [ ssh_key ] environment: - ANSIBLE_PRIVATE_KEY=$SSH_KEY - ANSIBLE_HOST_KEY_CHECKING=False commands: - apk add --update ansible - printf "$SSH_KEY" > /tmp/privateKey - chmod 600 /tmp/privateKey - sha256sum /tmp/privateKey - ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml notify: image: deblan/woodpecker-email secrets: [ smtp_user, smtp_pass ] settings: from.address: woodpecker@clacks.network from.name: woodpecker-ci host: smtp.migadu.com username: $SMTP_USER password: $SMTP_PASS