mirror of
https://github.com/dawidd6/action-ansible-playbook.git
synced 2024-11-26 10:17:50 +00:00
main: just write inventory
This commit is contained in:
parent
bfdba4708c
commit
5240df9b51
1 changed files with 3 additions and 2 deletions
5
main.sh
5
main.sh
|
@ -36,8 +36,9 @@ if test -n "$options"; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test -n "$inventory"; then
|
if test -n "$inventory"; then
|
||||||
echo "==> Writing inventory with custom content:"
|
echo "==> Setting inventory"
|
||||||
echo -e "$inventory" | tee "$inventory_file"
|
echo "$inventory" > "$inventory_file"
|
||||||
|
cat $inventory_file
|
||||||
options="$options --inventory $inventory_file"
|
options="$options --inventory $inventory_file"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue