2 Commits

Author SHA1 Message Date
Dawid Dziurla
47f48fd0e8 workflows: pass -e options 2020-04-07 00:58:47 +02:00
Dawid Dziurla
55d6336eea main: use awk to trim whitespace 2020-04-07 00:57:21 +02:00
2 changed files with 4 additions and 6 deletions

View File

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

View File

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