- name: test none
  set_fact:
      none_var: "{{ yaml_none }}"
      none_var_direct: "{{ None }}"

- assert:
    that:
        - none_var is sameas none
        - none_var|type_debug == "NoneType"
        - none_var_direct is sameas none
        - none_var_direct|type_debug == "NoneType"
