It has nothing to do with your playbook. Those warnings come from Python, and indicate that some code in a python library has an incorrect comparison.
On Mon, May 10, 2021 at 4:55 AM Matthias Grähn < [email protected]> wrote: > > 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 > > > > EDU-Werkstatt GmbH | Am Friedrichshain 22 | 10407 Berlin > > Geschäftsführer: David Hauptmann, Andreas Grähn > Registergericht: Amtsgericht Berlin (Charlottenburg) | HRB > 146423 > Telefon: +4930 - 224 1199 - 0 | E-Mail: [email protected] > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/664ed677-73d2-443c-b8db-bd06ed87240bn%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/664ed677-73d2-443c-b8db-bd06ed87240bn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Matt Martz @sivel sivel.net -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CAD8N0v-UYpwRuGHZLgqvyd_RKpd0WDTbWRvkru%3DxKmWccb86Jg%40mail.gmail.com.
