mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-22 07:26:25 +00:00
workflows: use inventory and limit
This commit is contained in:
parent
26bba33ddb
commit
f039d623c2
1 changed files with 3 additions and 5 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -23,7 +23,7 @@ jobs:
|
|||
-w /wd \
|
||||
-e INPUT_PLAYBOOK=playbook.yml \
|
||||
-e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" \
|
||||
-e INPUT_OPTIONS="-e host=host -e user=user" \
|
||||
-e INPUT_OPTIONS="--inventory hosts --limit remote" \
|
||||
action
|
||||
- name: Test local
|
||||
uses: ./
|
||||
|
@ -31,7 +31,5 @@ jobs:
|
|||
playbook: playbook.yml
|
||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||
options: |
|
||||
-e host=localhost
|
||||
-e user=root
|
||||
-c local
|
||||
-v
|
||||
--inventory hosts
|
||||
--limit local
|
Loading…
Reference in a new issue