Clarification on requirements from Ansible Galaxy Collection community.general #140
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I am trying to run your ntp role version 2.7.0 in a simple ansible playbook:
But I receive the following error. I also tried removing my override of the
ntp_timezone
variable, so it uses the default, but still receive the same error message.Error message:
I am using the default Ansible community Execution Environment image and start my container like this in my git directory with all my ansible files:
After going trough all tasks in main.yml, I found that 'timezone' is not part of 'ansible.builtin' but rather 'community.general', which requires the ansible galaxy collection 'community.general' to be installed locally. This was a surprise, since the roles stated Dependencies: None.
Therefore I open this pull request to define the clear origin of each task and update the dependency section in the readme file. I also added an ansible lint GitHub workflow and applied fixes for all findings:
I can revert the GitHub Workflow changes, if you do not feel comfortable with it. Also, please let me know if you would like to see changes made to the requirements.yml and the listed version requirements.