File tree 2 files changed +2
-0
lines changed
2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ __host_file_location () {
62
62
[[ " $OSTYPE " == darwin* ]] && FALLBACK=" /usr/local/etc/ansible/hosts"
63
63
[[ " $OSTYPE " == linux* ]] && FALLBACK=" /etc/ansible/hosts"
64
64
HOST_FILE=${ANSIBLE_HOSTS:= ${FALLBACK} }
65
+ [[ -f ${HOST_FILE} ]] || HOST_FILE=" $PWD /ansible/inventory/hosts"
65
66
[[ -f ${HOST_FILE} ]] || HOST_FILE=/dev/null
66
67
67
68
echo ${HOST_FILE}
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ __host_file_location () {
61
61
[[ " $OSTYPE " == darwin* ]] && FALLBACK=" /usr/local/etc/ansible/hosts"
62
62
[[ " $OSTYPE " == linux* ]] && FALLBACK=" /etc/ansible/hosts"
63
63
HOST_FILE=${ANSIBLE_HOSTS:= ${FALLBACK} }
64
+ [[ -f ${HOST_FILE} ]] || HOST_FILE=" $PWD /ansible/inventory/hosts"
64
65
[[ -f ${HOST_FILE} ]] || HOST_FILE=/dev/null
65
66
66
67
echo ${HOST_FILE}
You can’t perform that action at this time.
0 commit comments