test with alpine
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Morgan McMillian 2023-03-09 08:40:09 -08:00
parent 689cac7c59
commit 54cf73f885

View file

@ -6,23 +6,19 @@ pipeline:
- ANSIBLE_PRIVATE_KEY=$SSH_KEY - ANSIBLE_PRIVATE_KEY=$SSH_KEY
- ANSIBLE_HOST_KEY_CHECKING=False - ANSIBLE_HOST_KEY_CHECKING=False
commands: commands:
# - apt-get update && apt-get install ansible -y - apk add --update ansible
# - apt-get update && apt-get install file -y
- printf "$SSH_KEY" > /tmp/privateKey - printf "$SSH_KEY" > /tmp/privateKey
- chmod 600 /tmp/privateKey - chmod 600 /tmp/privateKey
- sha256sum /tmp/privateKey - sha256sum /tmp/privateKey
- cat /tmp/privateKey - ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml
- file /tmp/privateKey
- wc -l /tmp/privateKey
# - ansible-playbook --user igor --inventory hosts.ini --private-key /tmp/privateKey main.yml
publish: # publish:
image: plugins/ansible # image: plugins/ansible
pull: true # pull: true
secrets: [ ssh_key ] # secrets: [ ssh_key ]
settings: # settings:
playbook: main.yml # playbook: main.yml
inventory: hosts.ini # inventory: hosts.ini
connection: paramiko_ssh # connection: paramiko_ssh
user: igor # user: igor
private_key: $SSH_KEY # private_key: $SSH_KEY