To place it in hostvars you need to name it `ansible_become_flags`:

https://docs.ansible.com/ansible/latest/user_guide/intro_inventory.html#list-of-behavioral-inventory-parameters

On Thu, Jan 31, 2019 at 11:56 AM Bruno Cochofel <[email protected]>
wrote:

> Hi,
>
> I have the need to configure become_flags var for some of my inventory
> hosts (because of old sudo versions not accepting " -H -S -n").
> I was trying to do this on my dynamic inventory with hostvars for that
> host, but doesn't work, I think become_flags only works for plays and tasks.
>
> Can I handle this in some other way?
>
> Thanks,
> Bruno
>
> --
> 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/61f84a8f-6ccf-4643-b139-eaff0f7ace7d%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/61f84a8f-6ccf-4643-b139-eaff0f7ace7d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Matt Martz
@sivel
sivel.net

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

Reply via email to