Modules are run without knowledge of playbook state.  For a module to have
access playbook state, it must be explicitly passed by the user as module
arguments to the module.

On Thu, Sep 12, 2019 at 9:06 AM l vic <lvic4...@gmail.com> wrote:

> Hello,
> Is there a way to read playbook vars such as:
>
> - hosts: webservers
>   vars:
>     http_port: 80
>
>
> from custom module (python)?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Development" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to ansible-devel+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-devel/8da9851c-7a29-46f1-bc11-cba912570bae%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-devel/8da9851c-7a29-46f1-bc11-cba912570bae%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Matt Martz
@sivel
sivel.net

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to ansible-devel+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-devel/CAD8N0v8fe0BXc3TCN476tq%3D8HU_t9CVA8Ew4E6d-nWnK3aQVZQ%40mail.gmail.com.

Reply via email to