mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2026-01-11 14:01:41 -07:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
47f48fd0e8 | ||
|
|
55d6336eea |
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -51,10 +51,8 @@ jobs:
|
|||||||
key: ${{secrets.SSH_PRIVATE_KEY}}
|
key: ${{secrets.SSH_PRIVATE_KEY}}
|
||||||
vault_password: test
|
vault_password: test
|
||||||
inventory: |
|
inventory: |
|
||||||
[remote]
|
[all]
|
||||||
host ansible_user=user
|
|
||||||
|
|
||||||
[local]
|
|
||||||
localhost ansible_user=root ansible_connection=local
|
localhost ansible_user=root ansible_connection=local
|
||||||
options: |
|
options: |
|
||||||
--limit local
|
-e key1=val1
|
||||||
|
-e key2=val2
|
||||||
|
|||||||
2
main.sh
2
main.sh
@@ -32,7 +32,7 @@ if test -n "$directory"; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$options"; then
|
if test -n "$options"; then
|
||||||
options="$(echo "$options" | tr '\n' ' ' | xargs)"
|
options="$(echo "$options" | tr '\n' ' ' | awk '{$1=$1};1')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$inventory"; then
|
if test -n "$inventory"; then
|
||||||
|
|||||||
Reference in New Issue
Block a user