Hi,

Have a look here:
https://docs.ansible.com/ansible/latest/dev_guide/developing_modules_general.html
You'll need to build your own module that you can invoke from your task
list or role.

kind regards
Pshem


On Thu, 7 Mar 2019 at 22:09, <[email protected]> wrote:

> I am an ansible newbie. My first non-trivial ansible project is to update
> / optimize the configuration of Juniper switches. The ansible modules are
> not run on the Juniper switch but locally on the ansible controller. The
> default modules do not seem to match our requirements, thus a (python) user
> module is needed. In a role ( ~/roles/x/vars/main.yaml ) a multi-level dict
> (in python-parlance) is defined, which includes a few lists. Is this
> information accessible from within a python script running on the ansible
> controller, and if so, how?
>
> --
> 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/bcfc0ff2-ad8b-4030-b9a2-de7871177516%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/bcfc0ff2-ad8b-4030-b9a2-de7871177516%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAEaZiRVS5vTWwZS9Sc2VJR2aZEweBKPhD5EZooNYYigDnRSaFw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to