Skip to content

Commit

Permalink
Allow also posix and community.general Ansible modules
Browse files Browse the repository at this point in the history
  • Loading branch information
mildas authored and matusmarhefka committed Oct 31, 2024
1 parent c670509 commit 4a53d70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static-checks/ansible/allowed-modules/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ def process_task(task, all_allowed_modules):
found_allowed_modules.update(process_task(block_task, all_allowed_modules))
else:
keywords = set(kw.replace('ansible.builtin.', '') for kw in original_keywords)
keywords = set(kw.replace('community.general.', '') for kw in keywords)
keywords = set(kw.replace('ansible.posix.', '') for kw in keywords)
allowed_module = keywords.intersection(all_allowed_modules)
if allowed_module:
found_allowed_modules.update(allowed_module)
Expand Down

0 comments on commit 4a53d70

Please sign in to comment.