diff --git a/src/_ansible b/src/_ansible index faabf04..a4c59a3 100644 --- a/src/_ansible +++ b/src/_ansible @@ -91,7 +91,7 @@ __host_list () local -a mixed_host_list mixed_host_list=$(command \ cat ${HOST_FILE} \ - | awk 'NF && $1 !~ /[\[:=]/ { print $1 }' \ + | awk 'NF && $1 !~ /^[:space:]*#|[\[:=]/ { print $1 }' \ | sort | uniq) # compute set difference h1 - h2