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

feat: support inventory as a single file or directory #551

Merged
merged 8 commits into from
Aug 21, 2023

Conversation

mkanoor
Copy link
Contributor

@mkanoor mkanoor commented Jun 29, 2023

We don't load the inventory data in ansible-rulebook its passed into the ansible-runner as is.

Based on work done in PR #523

#344
https://issues.redhat.com/browse/AAP-7661

We don't load the inventory data in ansible-rulebook its passed
into the ansible-runner as is.
@ttuffin ttuffin requested review from a team and benthomasson July 19, 2023 06:36
Copy link
Contributor

@Alex-Izquierdo Alex-Izquierdo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Inventory is value that remains through the live cycle of the process. Have you considered to moving this kind of things to a shared place, like https://github.com/ansible/ansible-rulebook/blob/main/ansible_rulebook/conf.py#L18 ?

That would allow us to reduce the number of params passed through functions.

A couple of questions, but LGTM

ansible_rulebook/builtin.py Show resolved Hide resolved
@mkanoor mkanoor merged commit c7cf3f4 into ansible:main Aug 21, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants