From c1cb31a8a9f2e56e936c85a717bac5fab08c37cb Mon Sep 17 00:00:00 2001 From: Megan Marsh Date: Wed, 9 May 2018 09:59:54 -0700 Subject: [PATCH] add documentation to ansible provisioner warning against running Packer as root --- website/source/docs/provisioners/ansible.html.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/website/source/docs/provisioners/ansible.html.md b/website/source/docs/provisioners/ansible.html.md index 0f9aa5908..b20e53bbf 100644 --- a/website/source/docs/provisioners/ansible.html.md +++ b/website/source/docs/provisioners/ansible.html.md @@ -260,3 +260,7 @@ To unload all keys from your `ssh-agent`, run: ```console $ ssh-add -D ``` + +### Become: yes + +We recommend against running Packer as root; if you do then you won't be able to successfully run your ansible playbook as root; `become: yes` will fail.