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

Add experimental rule for run_once #2626

Merged
merged 1 commit into from Oct 27, 2022
Merged

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Oct 27, 2022

Fixes: #1026
Closes: #2593

@ssbarnea ssbarnea changed the title fix/new rule Add experimental rule for run_once Oct 27, 2022
@ssbarnea ssbarnea merged commit 350a026 into ansible:main Oct 27, 2022
@ssbarnea ssbarnea deleted the fix/new-rule branch October 27, 2022 19:15
@bluikko
Copy link
Contributor

bluikko commented Oct 28, 2022

What - a warning will be printed if strategy free is used? That is not what 1026 is about at all, it is about the combined use of free and run_once (which is not supported by Ansible).

Edit: this PR is "sneaking" in a second warning that is not discussed or mentioned anywhere. Nowhere is a warning for free mentioned - not in release notes, not in this PR. So why does that (IMO unnecessary) warning even exist?

Or is this because of limitations in ansible-lint? Only way to look at both play level and task level are 2 separate warnings?

hswong3i added a commit to alvistack/ansible-role-ceph_osd that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-ceph_mgr that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_cilium that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-ceph_rgw that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-ceph_mon that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-ceph_mds that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_csi_cephfs that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_csi_hostpath that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_addon_manager that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_csi_rbd that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_registry that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_dashboard that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_node that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_master that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_cert_manager that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_metallb that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_ingress_nginx that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_weave that referenced this pull request Nov 2, 2022
hswong3i added a commit to alvistack/ansible-role-kube_flannel that referenced this pull request Nov 2, 2022
ssbarnea added a commit to ssbarnea/ansible-lint that referenced this pull request Nov 11, 2022
Co-authored-by: Ajinkya <audgirka@redhat.com>
@MicLennartz
Copy link

The logic in the rule is giving a warning, whenever run_once is used. No just in combination with a 'free' strategy.

I think, there are very legitimate use-cases for this keyword and it can be done in a predictable way. (we actually do this in our infrastructure). Also there's no hint in the Ansible reference docs, that the use of run_once is seen as problematic.

Please reconsider this PR and check only for the risky combination of run_once and strategy: free.

robin-checkmk added a commit to Checkmk/ansible-collection-checkmk.general that referenced this pull request Feb 21, 2023
Currently, the rule makes no sense and causes false positives for us.
Reference: ansible/ansible-lint#2626
robin-checkmk added a commit to Checkmk/ansible-collection-checkmk.general that referenced this pull request May 22, 2023
Currently, the rule makes no sense and causes false positives for us.
Reference: ansible/ansible-lint#2626
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add rule warning about use of run_once with strategy: free
4 participants