Use:

"ansible_env_vars": [
"ANSIBLE_ROLES_PATH=/some_custom_path/:$ANSIBLE_ROLES_PATH" ]

See https://www.packer.io/docs/provisioners/ansible.html#ansible_env_vars

On 27 February 2017 at 12:29, Yasin Amadmia <
[email protected]> wrote:

> Hi,
>
> Is it possible to provide a `roles_path` variable in ansible provisioner
> (like the one available in ansible_local provisioner) or feed in a specific
> ansible.cfg file that defines that ?
>
> Thanks.
>
>
>
> *This e-mail and any attachments are confidential and intended solely for
> the use of the addressee only. If you have received this message in error,
> you must not copy, distribute or disclose the contents; please notify the
> sender immediately and delete the message.This message is attributed to the
> sender and may not necessarily reflect the view of Travis Perkins Trading
> Company Limited, 733503, Lodge Way House, Lodge Way, Harlestone Road,
> Northampton, NN5 7UG or its parent company Travis Perkins plc (Registered
> in England No. 824821; Lodge Way House, Lodge Way, Harlestone Road,
> Northampton, NN5 7UG; VAT number 408556737) and any of its subsidiaries.
> Agreements binding Travis Perkins Trading Company Limited may not be
> concluded by means of e-mail communication.E-mail transmissions are not
> secure and Travis Perkins Trading accepts no responsibility for changes
> made to this message after it was sent. Whilst steps have been taken to
> ensure that this message is virus free, Travis Perkins Trading accepts no
> liability for infection and recommends that you scan this e-mail and any
> attachments.*
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/packer/issues
> IRC: #packer-tool on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Packer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/packer-tool/ccec27ee-9242-4061-8b4d-cfd17ea428e7%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/ccec27ee-9242-4061-8b4d-cfd17ea428e7%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt9J-9Dck3uLEPtGFrWxgVKeKZxvuQ1bo1YgRc9Cc9uuGQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to