Some time ago, I wrote a small lookup plugin 
https://github.com/mantiz/ansible-lookup-plugin-os-specific

This plugin allows/allowed to define a list of items where each item could 
be specialized for a specific os or distribution.
For this to work, I need the facts to access ansible_distribution and so on.

Yesterday, I updated to the latest git version of ansible and the facts 
seem no longer be passed to the module.

Is there another way to access the facts from inside the module?

The only workaround I found was to pass the facts manually, like:

- some_task: ...
  with_os_specific:
    facts: "{{ vars }}"
    items:
      - ...

But this is annoying and easy to forget.

If there is no way to access the facts, is there any other way to solve the 
issue, the plugin solves?

-- 
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 post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/2be318f3-c91b-4806-9482-7de95502b7bb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to