Skip to content

How to use a custom inventory file with ansible-bender? #277

@cryobry

Description

@cryobry

I'm trying to run ansible-bender on a remote SSH host found in my inventory.

I have tried passing the custom inventory file as an additional argument to ansible-bender:

ansible-bender build --extra-ansible-args "-i ./inventory" ./ab-playbook.yml

...but the inventory is ignored and the image is still built locally. Is there any way to run ansible-bender on the remote host specified in my inventory/playbook?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions