ansible-lint line length exceeded and ssh pub keys #3223
Unanswered
RobVerduijn
asked this question in
Q&A
Replies: 1 comment 8 replies
-
example: "ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\
xxxxxxxxxxxxxxxxxxxx example" |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I noticed an interesting thing about the ansible-lint line length exceeded error.
It's fine when you're doing regular stuff, and most issues can be avoided by using yaml multi line tricks
But when you set up a host_var in host_vars/my_host.yml using the special ansible variable ansible_pubkey the line length exceeds the 160 character limit quite a bit
576 chars is the line length in my case ( pub key generated with ssh-keygen/openssh-8.8p1 on fedora37)
So snipping of my email and using multiline '>-' isn't really putting a dent in that number.
(there are 2 spaces in the entire line, the one after the ssh-rsa in the beginning and the one before the email at the end)
And disabling the length exceeded check globally isn't really what I'm looking for.
Any ideas on how to deal with this ?
Rob
Beta Was this translation helpful? Give feedback.
All reactions