Details of ansible-lint --fix command #4685
Unanswered
kushalrathod32
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to correct a rule using ansible-lint --fix=module-instead-of-shell command , but then Ansible lint is automatically fixing yaml also with it, and if I put yaml in skip_list then it corrects nothing and says that you have to remove yaml from the skip_list to use the --fix command
(venv) rathodkushalb@rathodkushalb:~/deployment-gc$ ansible-lint --fix playbooks/taskbooks/vc_psc_backup_v2.yml
WARNING You specified '--fix', but no files can be modified because 'yaml' is in 'skip_list'.
this is what I am getting
and when fixing yaml errors also is there a way I can fix only a particular set of yaml errors, I want to skip truthy while fixing yaml errors. I tried putting truthy in the skip_list but that doesn't work
Beta Was this translation helpful? Give feedback.
All reactions