1
0
Fork 0
mirror of https://github.com/dawidd6/action-ansible-playbook.git synced 2024-11-26 02:11:30 +00:00

workflows: use inventory and limit

This commit is contained in:
Dawid Dziurla 2020-03-22 12:47:57 +01:00
parent 26bba33ddb
commit f039d623c2
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B

View file

@ -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