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

Use role dependencies instead of explicit include_roles #40

Merged
merged 10 commits into from
Sep 16, 2024

Conversation

florianpiesche
Copy link
Contributor

This will cause Ansible to de-duplicate rule inclusion, speeding up provisioning time and reducing the amount of interference through repeat provisioning.

Role dependencies cannot be platform-specific and `geerlingguy.mac.homebrew` doesn't check its host platform. :(
We cannot otherwise make this conditional on running on macOS only.
@florianpiesche
Copy link
Contributor Author

I've had to re-add the explicit include_role for geerlingguy.mac.homebrew as that role is only available as part of the geerlingguy.mac collection and Ansible doesn't support specifying role requirements for non-standalone roles.

@florianpiesche florianpiesche merged commit 5651b50 into main Sep 16, 2024
5 of 6 checks passed
@florianpiesche florianpiesche deleted the use-role-dependencies branch September 16, 2024 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants