test-proj/.woodpecker.yml
Morgan McMillian b8e3015849
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed
check file
2023-03-09 08:07:23 -08:00

27 lines
718 B
YAML

pipeline:
test:
image: debian:stable
secrets: [ ssh_key ]
environment:
- ANSIBLE_PRIVATE_KEY=$SSH_KEY
- ANSIBLE_HOST_KEY_CHECKING=False
commands:
# - apt-get update && apt-get install ansible -y
- echo $${SSH_KEY} > /tmp/privateKey
- chmod 600 /tmp/privateKey
- sha256sum /tmp/privateKey
- cat /tmp/privateKey
- file /tmp/privateKey
- ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml
publish:
image: plugins/ansible
pull: true
secrets: [ ssh_key ]
settings:
playbook: main.yml
inventory: hosts.ini
connection: paramiko_ssh
user: igor
private_key: $SSH_KEY