Hi - 

I have a basic dynamic inventory using the azure plugin:

```
plugin: azure_rm

include_vm_resource_groups:
- my_resource_group
```

However, this script runs in CI and teh resource group is created by a 
previous step, so it is not static. What I really want to do is this:

```
plugin: azure_rm

include_vm_resource_groups:
- "{{ lookup('env', 'MY_RESOURCE_GROUP') }}"
```

However the lookup syntax doesn't work here, and the variable is not 
expanded. I have a temporary solution using sed to replace the variable on 
the fly, but is there a more elegant solution?

Thanks,
Andrew.

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7f6b181b-54f8-434e-9c74-a349d93c468e%40googlegroups.com.

Reply via email to