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?