'ansible_lsb' is undefined What about using a default value? http://docs.ansible.com/playbooks_variables.html#forcing-variables-to-be-defined