There's another class of plugins that you can think of as "sitting on top of modules":
https://docs.ansible.com/ansible/devel/plugins/action.html Action plugins can do a lot of complicated things such as accessing vars and internal play contexts. On Sat, Sep 29, 2018 at 11:56 AM texas living <[email protected]> wrote: > I was able to parse the ansible.cfg file using > "ansible.module_utils.six.moves import configparser" and pull the values I > am looking for. Now I just need a way to pull the remote_addr variable so > I would not need to pass in the server: option from the task. > > configparser examples = https://wiki.python.org/moin/ConfigParserExamples > > -- > 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/32cfedc7-0fc0-4567-9f05-abfe7dce9e4a%40googlegroups.com > <https://groups.google.com/d/msgid/ansible-project/32cfedc7-0fc0-4567-9f05-abfe7dce9e4a%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/CAMSYDtyG0X3KmW%2B8PdKaoENxrLeMkgsw%2BXpPJrR4FD6xS787Eg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
