Open Fodoj opened 4 years ago
Commit in question: https://github.com/theforeman/foreman-ansible-modules/commit/72376b0f42eb74919604c00f4cb89fabb599ba9f
Before that it was possible to register variable, for example usergroup like this:
register: usergroup
And then use it like this:
usergroup['entity']['id']
Now it's a bit more verbose:
usergroup['entity']['usergroups'][0]['id']
Which is a bit too much, given that only one resource is managed at a time.
/cc @evgeni
Can we always report the main entity at result['entity']['id'] and report the others as subentities / elsewhere?
result['entity']['id']
SUMMARY
Commit in question: https://github.com/theforeman/foreman-ansible-modules/commit/72376b0f42eb74919604c00f4cb89fabb599ba9f
Before that it was possible to register variable, for example usergroup like this:
And then use it like this:
Now it's a bit more verbose:
Which is a bit too much, given that only one resource is managed at a time.
ISSUE TYPE