mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-26 02:11:30 +00:00
workflows: run the playbook against other container
this way we can test if ssh is working
This commit is contained in:
parent
36026d33a9
commit
938ce6ffd6
1 changed files with 7 additions and 2 deletions
9
.github/workflows/test.yml
vendored
9
.github/workflows/test.yml
vendored
|
@ -5,6 +5,11 @@ on: push
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
services:
|
||||||
|
host:
|
||||||
|
image: dawidd6/alpine-for-ansible
|
||||||
|
env:
|
||||||
|
SSH_PUBLIC_KEY: ${{secrets.SSH_PUBLIC_KEY}}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
@ -12,7 +17,7 @@ jobs:
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
playbook: playbook.yml
|
playbook: playbook.yml
|
||||||
|
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||||
options: |
|
options: |
|
||||||
--inventory=localhost,
|
--inventory=user@host,
|
||||||
--connection=local
|
|
||||||
--verbose
|
--verbose
|
Loading…
Reference in a new issue