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' violations for 'disaster_recovery' & 'remove_stale_lun' roles #554

Merged
merged 10 commits into from
Jul 4, 2022

Commits on Jun 30, 2022

  1. Add "remove_stale_lun" role to "automation/build.sh".

    This PR is going to handle the remaining "ansible-lint" version 6.0.0
    violations for "disaster_recovery" & "remove_stale_lun" roles.
    The follow-up commits will remove the specific per-type exclusions
    and will fix the resulting "ansible-lint" violations, till the PR becomes
    green and there are no per-type exclusions for the 2 roles.
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    7bdd71a View commit details
    Browse the repository at this point in the history
  2. Fix violations reported by "yamllint" (trailing-spaces).

    No trailing spaces are allowed.
    Fixing 1 violation:
      yaml: trailing spaces (yaml[trailing-spaces])
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    642e475 View commit details
    Browse the repository at this point in the history
  3. Fix "var-spacing" violations.

    Adding the missing spaces before and after the "|" Jinja2 "default" filter.
    Fixing 14 violations:
      var-spacing: Jinja2 variables and filters should have spaces before and after.
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jun 30, 2022
    Configuration menu
    Copy the full SHA
    f485191 View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2022

  1. Fix "risky-shell-pipe" violations.

    Adding the missing "pipefail" option.
    Fixing 1 violation:
      risky-shell-pipe: Shells that use pipes should set the pipefail option.
    Some code reformatting to increase readability.
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    dfb2315 View commit details
    Browse the repository at this point in the history
  2. Fix "unnamed-task" violations.

    1. Adding the missing tasks' names.
    Fixing 31 violations:
      unnamed-task: All tasks should be named.
    2. Fixing some names (i.e. typos, plural vs. single and vice versa).
    3. Adding additional info to the names (like disk ID, VM name or Storage Domain name).
    4. Some comments improvements.
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jul 1, 2022
    Configuration menu
    Copy the full SHA
    bd04efc View commit details
    Browse the repository at this point in the history

Commits on Jul 2, 2022

  1. Fix "fqcn-builtins" violations.

    FQCN stands for "Fully Qualified Collection Name".
    Adding the missing "ansible.builtin." prefix.
    Fixing 54 violations:
      fqcn-builtins: Use FQCN for builtin actions.
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jul 2, 2022
    Configuration menu
    Copy the full SHA
    e4a2667 View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2022

  1. Fix "no-changed-when" violations.

    Adding the missing "changed_when" conditional.
    Fixing 5 violations:
      no-changed-when: Commands should not change things if nothing needs doing.
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    a7f00ed View commit details
    Browse the repository at this point in the history
  2. Remove last "disaster_recovery" & "remove_stale_lun" roles exclusions.

    This PR handled the remaining "ansible-lint" version 6.0.0
    violations for "disaster_recovery" & "remove_stale_lun" roles.
    The only thing that's left are "ignore-errors" *warnings*.
    After some discussions those should be ignored.
    The ".ansible-lint" file for default ignores will be added by mnecas.
    
    Signed-off-by: Pavel Bar <[email protected]>
    Bug-Url: https://bugzilla.redhat.com/2097332
    barpavel committed Jul 4, 2022
    Configuration menu
    Copy the full SHA
    20f3061 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d10e334 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    5dc52af View commit details
    Browse the repository at this point in the history