In an ansible play, is "or" not supported with conditional statements? I have a task that is searching a variable for 2 values. The when statements work alone, but with "or" it runs but doesn't do what I am expecting. Here is the task, is my syntax wrong or is it just not supported? -
- name: Apply policy to the interfaces cisco.ios.ios_config: parents: interface {{ item.key }} lines: - device-tracking attach-policy IPDT_POLICY loop: "{{ netbrain_interface_attributes|dict2items }}" when: > item.key is not search("Port") or item.key is not search("Vlan") -- 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 ansible-project+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/a0649fd5-6757-4e91-9424-904629aad1fdn%40googlegroups.com.