Merge pull request #347 from sarg/master

Ignore comments in ansible hosts
This commit is contained in:
nicoulaj 2016-02-04 22:02:41 +01:00
commit ad14cfb6e7
1 changed files with 1 additions and 1 deletions

View File

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