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

Disable action validation with tasks by default #1377

Merged
merged 1 commit into from Feb 19, 2021
Merged

Disable action validation with tasks by default #1377

merged 1 commit into from Feb 19, 2021

Conversation

ssbarnea
Copy link
Member

@ssbarnea ssbarnea commented Feb 18, 2021

This change should address mentioned bug by introducing a small risk of not catching some invalid module calls for roles that do not have playbooks inside the same repository.

All users that have at least one playbook that imports the role, will still be able to detect these errors as ansible-playbook --syntax-check finds them.

We plan to add a feature that would create fake temporary playbooks for roles found inside a repository, ones that would help us identify missing or misspelled modules.

Fixes: #1354

@ssbarnea ssbarnea added the bug label Feb 18, 2021
@ssbarnea ssbarnea changed the title Disable action validations with tasks by default Disable action validation with tasks by default Feb 18, 2021
Copy link
Contributor

@tadeboro tadeboro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good as far as the code goes. I did not test this on an example though.

@ssbarnea
Copy link
Member Author

Looks good as far as the code goes. I did not test this on an example though.

I have some other work in progress to be included in the same patch release, but I wanted to avoid big patches as they are more likely to include bugs. This sorts the most common issue encountered by v5 early adopters.

@ssbarnea ssbarnea merged commit 61c6464 into master Feb 19, 2021
@ssbarnea ssbarnea deleted the 0/5.0.2 branch February 19, 2021 08:34
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.

5.0.0 fails to recognize modules from within roles tasks files
2 participants