Hi there,
I did an System update recently and now I get this Python warning:
SyntaxWarning: “is” with a literal. Did you mean “==”?
when I run my playbook. I guess it has to do with conditions like in this task:
- name: Set users authorized keys
authorized_key:
user: “{{item.0.username}}”
key: “{{item.1}}”
state: “{{state}}”
with_subelements: - “{{users}}”
- ssh_authorized_keys
when: item.ssh_authorized_keys is defined
Is there another way to set these conditions now or hao can I prevent this warnings. (The span the output)
Thanks and regards
Matthias