Hey,
I use a python virtualenv and have the latest ansible 2.9 in my
requirements.txt (ansible >= 2.9, <2.10); and I am on ansible 2.9.21
with this. I had some problems with older 2.9, which are still in repos
like on or Ubuntu or FreeBSD. Maybe you would be able to resolve your
problem with trying the same(?)
Cheers
Lars
Am 10.05.21 um 11:55 schrieb Matthias Grähn:
>
> 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]
> <mailto:[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]
> <mailto:[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>.
--
---
punkt.de GmbH
Lars Liedtke
.infrastructure
Kaiserallee 13a
76133 Karlsruhe
Tel. +49 721 9109 500
https://infrastructure.punkt.de
[email protected]
AG Mannheim 108285
Geschäftsführer: Jürgen Egeling, Daniel Lienert, Fabian Stein
--
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/9eea9d9e-f5d7-5240-dc71-efb1ea6972cb%40punkt.de.