Try running it as a normal user.

https://packer.io/docs/provisioners/ansible.html#become-yes

On Wed, Nov 6, 2019, 17:53 Hakim KHANCHOUCH <
hakim-externe.khancho...@dalkia.fr> wrote:

> yes
>
> Le mercredi 6 novembre 2019 14:36:41 UTC+1, Rickard von Essen a écrit :
>>
>> Are you running Packer as root?
>>
>> On Tue, Nov 5, 2019, 17:20 Hakim KHANCHOUCH <hakim-exter...@dalkia.fr>
>> wrote:
>>
>>> Hello,
>>>
>>> I'm using packet to create an AMI and ansible to setup the instance.
>>> but running the packer script, i got this message [Errno 13] Permission
>>> denied: '/etc/.ansible_tmp4jZR1Denvironment'"}
>>> PS: I'm using become: yes in my playbook file.
>>>
>>> Could you please help ?
>>>
>>> Thanks.
>>>
>>> --
>>> 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 packe...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/packer-tool/24725672-5c76-446f-b5eb-b95fca4df62d%40googlegroups.com
>>> <https://groups.google.com/d/msgid/packer-tool/24725672-5c76-446f-b5eb-b95fca4df62d%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>> --
> 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+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/packer-tool/2bd1eaef-7d68-4b7f-8247-08bb2e678426%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/2bd1eaef-7d68-4b7f-8247-08bb2e678426%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CALz9Rt-JApKZuOnNc-AuPszbC4QyKYbQnjDX%2BKM53A4uLy%3DHLg%40mail.gmail.com.

Reply via email to