mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-22 15:32:18 +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 \
|
-w /wd \
|
||||||
-e INPUT_PLAYBOOK=playbook.yml \
|
-e INPUT_PLAYBOOK=playbook.yml \
|
||||||
-e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" \
|
-e INPUT_KEY="${{secrets.SSH_PRIVATE_KEY}}" \
|
||||||
-e INPUT_OPTIONS="-e host=host -e user=user" \
|
-e INPUT_OPTIONS="--inventory hosts --limit remote" \
|
||||||
action
|
action
|
||||||
- name: Test local
|
- name: Test local
|
||||||
uses: ./
|
uses: ./
|
||||||
|
@ -31,7 +31,5 @@ jobs:
|
||||||
playbook: playbook.yml
|
playbook: playbook.yml
|
||||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||||
options: |
|
options: |
|
||||||
-e host=localhost
|
--inventory hosts
|
||||||
-e user=root
|
--limit local
|
||||||
-c local
|
|
||||||
-v
|
|
Loading…
Reference in a new issue