chore: qualify X-Pack task modules with FQCNs - #71
Merged
Merged
Conversation
Qualify the remaining bare module invocations in the X-Pack task files with their `ansible.builtin.*` FQCNs, matching the style already used in tasks/elasticsearch-RedHat.yml, tasks/main.yml and the other migrated task files. Key renames only — no behaviour, argument or ordering changes.
Author
🔍 DEX CODE review✅ Looks good — no issues found. All 8 changes are module-key renames to the canonical PR authored by hex-botas[bot]; reviewing own work — approval is not recorded on Hex-authored PRs. Last reviewed: 2026-09-15 05:05 UTC Generated by DEX CODE |
LukoJy3D
approved these changes
Sep 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
📝 Summary by DEX CODE
ansible.builtin.*names, bringing them in line with the rest of the role and withansible-lint'sfqcn[action-core]rule.What
Qualify the 8 remaining bare module invocations in the X-Pack task files with their
ansible.builtin.*FQCNs.tasks/xpack/elasticsearch-xpack.ymlfiletasks/xpack/security/elasticsearch-security.ymlcommand×4,shell×2,templateWhy
The FQCN migration is already partly done in this role —
tasks/main.yml,tasks/elasticsearch-RedHat.yml,tasks/elasticsearch-parameters.ymlandtasks/elasticsearch-plugins.ymluseansible.builtin.*throughout, andtasks/xpack/elasticsearch-xpack.ymlalready qualifies itsinclude_taskswhile leaving thefiletask bare in the same file. Mixed styles inside one file are the inconsistency this closes.FQCNs are also what
ansible-lintwants (fqcn[action-core]), andansible-lint>=6.0is pinned inrequirements.txt, so this moves the role toward re-enabling the currently commented-out lint job in.github/workflows/molecule.yml.Scope
Deliberately limited to the X-Pack task files (8 instances). Other task files still carry bare module names —
tasks/elasticsearch-ssl.yml,tasks/elasticsearch-Debian.yml,tasks/xpack/security/elasticsearch-security-file.ymlandelasticsearch-security-native.ymlare the largest remaining ones, and are left for follow-up PRs rather than bundled here.Risk
Low. Key renames only — no behaviour, argument, ordering,
when,become,environmentorno_logchanges.ansible.builtin.*is the canonical name for each of these modules, so resolution is identical.Testing
No unit tests changed:
tests/coversfilter_plugins/custom.pyonly and no Python was touched, so unit-test coverage is unaffected. Thedefault,securityandcustom-configMolecule scenarios exercise these tasks — thesecurityscenario covers the keystore androle_mapping.ymltasks directly — and run on this PR via CI.Generated by DEX CODE
Triggered by
agent:weekly-code-improvements