workflows: run the playbook against other container

this way we can test if ssh is working
This commit is contained in:
Dawid Dziurla 2020-03-21 19:44:53 +01:00
parent 36026d33a9
commit 938ce6ffd6
No known key found for this signature in database
GPG Key ID: 7B6D8368172E9B0B

View File

@ -5,6 +5,11 @@ on: push
jobs:
test:
runs-on: ubuntu-latest
services:
host:
image: dawidd6/alpine-for-ansible
env:
SSH_PUBLIC_KEY: ${{secrets.SSH_PUBLIC_KEY}}
steps:
- name: Checkout
uses: actions/checkout@v2
@ -12,7 +17,7 @@ jobs:
uses: ./
with:
playbook: playbook.yml
key: ${{secrets.SSH_PRIVATE_KEY}}
options: |
--inventory=localhost,
--connection=local
--inventory=user@host,
--verbose