Remove ansible role meta dependencies to fix duplicate execution #20
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix-ansible-role-deduplication"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
meta/main.ymldependencies from ansible rolesindri.ymlplaybookplaybooks/roles→roles)Why
Ansible's tag accumulation behavior prevents proper role deduplication when using meta dependencies. When a role is pulled in as a dependency, the parent role's tags are added to the dependency's tags (e.g.,
[loki]becomes[alloy, loki]), making them appear as different invocations to Ansible and causing roles to run multiple times.Deployment and Testing
ansible-playbook --list-tasksthat each role now appears exactly once🤖 Generated with Claude Code