become_flags for specific inventory host

15 views
Skip to first unread message

Bruno Cochofel

unread,
Jan 31, 2019, 12:56:31 PM1/31/19
to Ansible Project
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

Matt Martz

unread,
Jan 31, 2019, 1:13:46 PM1/31/19
to ansible...@googlegroups.com

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/61f84a8f-6ccf-4643-b139-eaff0f7ace7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Matt Martz
@sivel
sivel.net

Bruno Cochofel

unread,
Feb 1, 2019, 7:09:38 AM2/1/19
to Ansible Project
Thanks Matt, that worked.
Reply all
Reply to author
Forward
0 new messages