Skip to content

Package Latest: Ignore Blocks When Download Only #4575

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

amayer5125
Copy link
Contributor

I ran into a case where we were using donwload_only and ansible-lint flagged the task for the package-latest rule. I believe since download_only: true does not make any changes to the packages that are installed, it should be ignored.

Example task that failed:

- name: Download New Packages
  ansible.builtin.dnf:
    name: '*'
    state: latest
    download_only: true
    update_cache: true

@audgirka audgirka enabled auto-merge (squash) April 9, 2025 12:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Review
Development

Successfully merging this pull request may close these issues.

2 participants