diff --git a/lib/ansible/playbook/task.py b/lib/ansible/playbook/task.py index 3e3393e95c..956c9eaee0 100644 --- a/lib/ansible/playbook/task.py +++ b/lib/ansible/playbook/task.py @@ -35,7 +35,7 @@ class Task(object): 'name', 'action', 'only_if', 'async', 'poll', 'notify', 'first_available_file', 'include', 'tags', 'register', 'ignore_errors', 'delegate_to', 'local_action', 'transport', 'sudo', 'sudo_user', - 'sudo_pass' + 'sudo_pass', 'when' ] def __init__(self, play, ds, module_vars=None):