ansible-pull: possible to use with add_hosts and remote targets?

Hi!

I am maintaining a set of servers which host some LXD containers on them.

The playbooks to install them go like this: First playbook connects to the LXD host, installs apps and services including the containers that are configured for it. A second playbook connects to this host, loops through its container configuration and adds them to an in-memory inventory group. These containers are then installed in a second play in this playbook, using the in-memory inventory group created just before.

This is working beautifully when used via ansible-playbook in push mode. But with ansible-pull, the add_host group gets defined, but cannot be used as inventory group later.

See this stripped down demonstration code:

Playbook (debug.yml):