Skip to content

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

Merged
mkanoor merged 8 commits into
ansible:mainfrom
mkanoor:inventory_file_dir
Aug 21, 2023
Merged

mkanoor merged 8 commits into
ansible:mainfrom
mkanoor:inventory_file_dir

Conversation

@mkanoor

@mkanoor mkanoor commented Jun 29, 2023

Copy link
Copy Markdown
Contributor

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

@Alex-Izquierdo Alex-Izquierdo left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread ansible_rulebook/builtin.py
@mkanoor
mkanoor merged commit c7cf3f4 into ansible:main Aug 21, 2023
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