Alan Rominger

Results 256 comments of Alan Rominger

How would users pass this option to ansible-builder? Would it be in the execution environment definition?

so a build arg. The assemble script also takes, in some sense, CONSTRAINTS, PACKAGES, and others. I don't fully understand those options. In my imagination, this would follow an `ARG`...

Yes, and I fully want to use this on its own in AWX, but over the long term I expect the plugin here will diverge and there will be problems....

I agree, https://github.com/ansible/ansible/pull/37019 would be better. I need to verify that it doesn't alter the pass-through behavior of `ansible-inventory` of vaulted variables, but I don't expect it would. If that...

The setting you mentioned could be set via the `vars_plugins_enabled` key in the `[defaults]` section of `ansible.cfg`. https://github.com/ansible/ansible/blob/0de44804679461b8d898129068183d6da416e3a7/lib/ansible/config/base.yml#L1980 That could (in-principal) be checked into the project where the inventory lives...

It absolutely makes sense. If this could be specifically disabled for inventory syncs, that sounds like a fairly desirable outcome. We have this statically-defined dictionary which are environment variables applied...

> But even with that supplied inventory `host_vars/foobar` & `group_vars/bar` would still get evaluated at this stage as well -- or am I mistaken here? Only if the inventory and...

Here's the stock Ansible vars plugin: https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/vars/host_group_vars.py Unfortunately, it has a monolithic `get_vars` method, so a subclass can't easily override the behavior of loading variables for a single host or...

You're second case is instructive, let's clarify the expectation where `inventory/host_vars/` are present...

I have a CLI demo of my preferred approach here: https://github.com/AlanCoding/Ansible-inventory-file-examples/tree/master/vault/file_vars I need to further polish the new option being added to the vars plugin here. With that done, then...