roles_path or ansible.cfg path in ansible provisioner

843 views
Skip to first unread message

Yasin Amadmia

unread,
Feb 27, 2017, 6:29:20 AM2/27/17
to Packer
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.

Rickard von Essen

unread,
Feb 27, 2017, 6:51:10 AM2/27/17
to packe...@googlegroups.com
Use:

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


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 packer-tool+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/ccec27ee-9242-4061-8b4d-cfd17ea428e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages