If I understand the question correctly you want to access port value within network_cli.py, if yes you can do it by accessing self._play_context.port
Regards, Ganesh On Sat, Sep 23, 2017 at 4:42 AM, <[email protected]> wrote: > Would anyone happen to know if the ansible_port variable is accessible > anywhere in this module? I'd like to make an update (for personal use) > that differentiates an action based on port. Thanks for any info! > > -- > 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/48e457f9-62e0-473f-8996-71df4b06c1f4%40googlegroups. > com > <https://groups.google.com/d/msgid/ansible-project/48e457f9-62e0-473f-8996-71df4b06c1f4%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/CA%2B6y2sE%3DK%2Bb1JDQUOVuGfbaYMwSMc3U65fY1qVdLf3MezvoL3g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
