From bb34c7ec58bd23507faa74309fcd2dd1bb18e63d Mon Sep 17 00:00:00 2001 From: Pierre-Etienne Poirot Date: Mon, 23 Nov 2015 14:19:15 +1100 Subject: [PATCH] Add a notice that Ansible needs to be already present on the target. Like the 'puppet-masterless' and 'puppet-server' provisioners (and unlike the 'chef-solo' and 'chef-client' provisioners), the 'ansible-local' currently requires Ansible to be present on the provisioned image. The relevant issue to add an install option to the provisioner is: https://github.com/mitchellh/packer/issues/2010 Until then, a notice similar to the 'puppet-masterless' and 'puppet-server' ones is added. --- .../source/docs/provisioners/ansible-local.html.markdown | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/source/docs/provisioners/ansible-local.html.markdown b/website/source/docs/provisioners/ansible-local.html.markdown index c0cec6641..8c638954a 100644 --- a/website/source/docs/provisioners/ansible-local.html.markdown +++ b/website/source/docs/provisioners/ansible-local.html.markdown @@ -18,6 +18,12 @@ uploaded from your local machine to the remote machine. Ansible is run in [local mode](http://docs.ansible.com/playbooks_delegation.html#local-playbooks) via the `ansible-playbook` command. +-> **Note:** Ansible will *not* be installed automatically by this +provisioner. This provisioner expects that Ansible is already installed on the +machine. It is common practice to use the [shell +provisioner](/docs/provisioners/shell.html) before the Ansible provisioner to do +this. + ## Basic Example The example below is fully functional.