The host specific connection variables trump the general settings and directives, this is on purpose as the hosts can require specifics that plays are unaware of. That said, there are several ways to override in command line and play.
I recommend using either `local_action` or `delegate_to: localhost` instead of `connection: local`, the latter does not override connection variables. Another way is to just set that variable `ansible_connection=local` on the command line or in the play, which will override the inventory setting. -- ---------- Brian Coca -- 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/CACVha7f17TS6B%2BvOe%3Duo%2B2T%3D3HRTfCywXggGkJeGVfnT0MfnOQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
