network_cli.py help

19 views
Skip to first unread message

coo...@gmail.com

unread,
Sep 22, 2017, 7:12:05 PM9/22/17
to Ansible Project
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!

Ganesh Nalawade

unread,
Sep 23, 2017, 3:26:59 AM9/23/17
to ansible...@googlegroups.com

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, <coo...@gmail.com> 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 ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/48e457f9-62e0-473f-8996-71df4b06c1f4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

coo...@gmail.com

unread,
Sep 23, 2017, 1:31:32 PM9/23/17
to Ansible Project
Exactly what I needed, thanks for the help!


On Saturday, September 23, 2017 at 12:26:59 AM UTC-7, Ganesh Nalawade wrote:

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, <coo...@gmail.com> 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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages