Ansible-lint --fix and comparison operators

Hello,

just an annoying note… I see that ansible-lint --fix provides this change:

   when:
-    - ansible_os_family == 'RedHat' or
-      ansible_os_family == 'Debian' or
-      ansible_os_family == 'Windows'
+    - ansible_os_family == 'RedHat' or ansible_os_family == 'Debian' or ansible_os_family == 'Windows'

Not very important, I just leave this as an hint. If I have a long expression, it could be better to leave the line break after each comparison operator. It’s more readable for me.

Thank you and thank you very much for maintain ansible-lint!
Marco

I would go for something like this:

when:  ansible_os_family in ('RedHat',  'Debian' , 'Windows')
1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.