Uploaded image for project: 'Ansible Automation Platform RFEs'
  1. Ansible Automation Platform RFEs
  2. AAPRFE-2059

Allow ansible-lint to skip `yaml` rules

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Won't Do
    • Icon: Undefined Undefined
    • None
    • 2.5
    • ansible-dev-tools
    • False
    • Hide

      None

      Show
      None
    • False

      What is the nature and description of the request?

      When the `yaml` rule is added to the `skip_list` it makes it so that when write_list/fix is used with it it won't actually modify the playbook because it's skipped:

      WARNING You specified '--fix', but no files can be modified because 'yaml' is in 'skip_list'. 

      But it should still be allowed to run specific rules for fixes while also skipping yaml.

      Why does the customer need this? (List the business requirements here)

      To only run one change at a time while using ansible-lint. Customer had an instance where the `yaml` rule broke their playbook and doesn't always want to run it.

      How would you like to achieve this? (List the functional requirements here)

      Allow `yaml` to be added to the `skip_list` parameter AND allow it to modify the file from there.

              rht-tima Tim Appnel
              rhn-support-nabecker Nate Becker
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: