Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix ansible lint seperate commits #684

Merged
merged 15 commits into from
Oct 27, 2022

Commits on Oct 26, 2022

  1. ansible lint formal changes

    Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=2100137
    
    including fixes for:
    - use FQCN for builtin actions
    - missing starting space in comment
    - jinja2 spacing could be improved
    - line too long
    - no new line character at the end of file
    - trailing spaces
    - too many spaces before colon
    - too many spaces after colon
    - too many blank lines
    - all names should start with an uppercase letter
    - truthy value should be one of  (yaml[truthy])
    - wrong indentation
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    98317c1 View commit details
    Browse the repository at this point in the history
  2. fix ansible lint: risky file permissions:

    'File permissions unset or incorrect'
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    b78c284 View commit details
    Browse the repository at this point in the history
  3. fix ansible lint: risky-shell-pipe:

    'Shells that use pipes should set the pipefail option'
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    36fc63b View commit details
    Browse the repository at this point in the history
  4. fix ansible lints: naming

    - role-name: Role name <role-name> does not match ``^*$`` pattern.
    - name: All tasks should be named. (name[missing])
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    b8cc1b2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d6d253c View commit details
    Browse the repository at this point in the history
  6. fix ansible lint: no-changed-when:

    'Commands should not change things if nothing needs doing'
    
    Since the tag 'skip_ansible_lint oVirt#301' doesn't work and '# noqa no-changed-when' cannot be set on code blocks,
    adding it to skip list
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    243fc68 View commit details
    Browse the repository at this point in the history
  7. fix ansible lints: using command

    - command-instead-of-module: systemctl used in place of systemd module (+ merged tasks), rpm used in
      place of yum or rpm_key module
    - command-instead-of-shell: Use shell only when shell functionality is required
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    0b19b51 View commit details
    Browse the repository at this point in the history
  8. fix ansible lint: ignore-errors:

    The error 'Use failed_when and specify error conditions instead of using ignore_errors'
    was handled by adding '# noqa ignore-errors' tag, since failure in these tasks shouldn't
    block from continuing the execution of the role
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    329a250 View commit details
    Browse the repository at this point in the history
  9. fix ansible lint: no-handler:

    Tasks that run when changed should likely be handlers
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    2280aea View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    fc15f6b View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    bb6ca23 View commit details
    Browse the repository at this point in the history
  12. fix ansible lint: template-instead-of-copy:

    'Templated files should use template instead of copy'
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    6ebc06f View commit details
    Browse the repository at this point in the history
  13. use argv with command instead of quoting inside the command

    fixed in all places that replaced shell with command
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    9545e85 View commit details
    Browse the repository at this point in the history
  14. fix ansible lint: use FQCN

    - use FQCN for builtin module actions (include_tasks, import_tasks)
    - Use FQCN for module actions
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    efe235b View commit details
    Browse the repository at this point in the history
  15. fix ansible lint: ignore risky-shell-pipe

    Ignoring because when using 'set -o pipefail &&' the task fails due to
    non zero return code
    dangel101 committed Oct 26, 2022
    Configuration menu
    Copy the full SHA
    88febb7 View commit details
    Browse the repository at this point in the history