I'm trying to use the new exclude_hosts option as part of the drained state
on the wait_for module (https://github.com/ansible/ansible/pull/7260). I'm
using the latest source from git.
However I'm getting the following error:
Traceback (most recent call last):
File
"/home/monk/.ansible/tmp/ansible-tmp-1412198038.01-173699330634982/wait_for"
, line 1967, in <module>
main()
File
"/home/monk/.ansible/tmp/ansible-tmp-1412198038.01-173699330634982/wait_for"
, line 326, in main
exclude_hosts = params['exclude_hosts'].split(',')
AttributeError: 'list' object has no attribute 'split'
My task looks like:
wait_for: host={{ ansible_hostname }} port=8080 state=drained exclude_hosts=
somehost1,somehost2
Any ideas?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/31ac7699-cc36-48f0-b6a1-26ce43158d65%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.