commit
e990e49711
|
@ -1,8 +1,10 @@
|
||||||
---
|
---
|
||||||
description: |
|
description: |
|
||||||
The ansible-local Packer provisioner configures Ansible to run on the
|
The ansible-local Packer provisioner will run ansible in ansible's "local"
|
||||||
machine by Packer from local Playbook and Role files. Playbooks and Roles can
|
mode on the remote/guest VM using Playbook and Role files that exist on the
|
||||||
be uploaded from your local machine to the remote machine.
|
guest VM. This means ansible must be installed on the remote/guest VM.
|
||||||
|
Playbooks and Roles can be uploaded from your build machine
|
||||||
|
(the one running Packer) to the vm.
|
||||||
layout: docs
|
layout: docs
|
||||||
page_title: 'Ansible Local - Provisioners'
|
page_title: 'Ansible Local - Provisioners'
|
||||||
sidebar_current: 'docs-provisioners-ansible-local'
|
sidebar_current: 'docs-provisioners-ansible-local'
|
||||||
|
@ -12,15 +14,17 @@ sidebar_current: 'docs-provisioners-ansible-local'
|
||||||
|
|
||||||
Type: `ansible-local`
|
Type: `ansible-local`
|
||||||
|
|
||||||
The `ansible-local` Packer provisioner configures Ansible to run on the machine
|
The `ansible-local` Packer provisioner will run ansible in ansible's "local"
|
||||||
by Packer from local Playbook and Role files. Playbooks and Roles can be
|
mode on the remote/guest VM using Playbook and Role files that exist on the
|
||||||
uploaded from your local machine to the remote machine. Ansible is run in [local
|
guest VM. This means ansible must be installed on the remote/guest VM.
|
||||||
mode](https://docs.ansible.com/ansible/playbooks_delegation.html#local-playbooks) via the
|
Playbooks and Roles can be uploaded from your build machine
|
||||||
|
(the one running Packer) to the vm. Ansible is then run on the guest machine
|
||||||
|
in [local mode](https://docs.ansible.com/ansible/playbooks_delegation.html#local-playbooks) via the
|
||||||
`ansible-playbook` command.
|
`ansible-playbook` command.
|
||||||
|
|
||||||
-> **Note:** Ansible will *not* be installed automatically by this
|
-> **Note:** Ansible will *not* be installed automatically by this
|
||||||
provisioner. This provisioner expects that Ansible is already installed on the
|
provisioner. This provisioner expects that Ansible is already installed on the
|
||||||
machine. It is common practice to use the [shell
|
guest/remote machine. It is common practice to use the [shell
|
||||||
provisioner](/docs/provisioners/shell.html) before the Ansible provisioner to do
|
provisioner](/docs/provisioners/shell.html) before the Ansible provisioner to do
|
||||||
this.
|
this.
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,9 @@
|
||||||
---
|
---
|
||||||
description: |
|
description: |
|
||||||
The shell Packer provisioner provisions machines built by Packer using shell
|
shell-local will run a shell script of your choosing on the machine where Packer
|
||||||
scripts. Shell provisioning is the easiest way to get software installed and
|
is being run - in other words, it shell-local will run the shell script on your
|
||||||
configured on a machine.
|
build server, or your desktop, etc., rather than the remote/guest machine being
|
||||||
|
provisioned by Packer.
|
||||||
layout: docs
|
layout: docs
|
||||||
page_title: 'Shell (Local) - Provisioners'
|
page_title: 'Shell (Local) - Provisioners'
|
||||||
sidebar_current: 'docs-provisioners-shell-local'
|
sidebar_current: 'docs-provisioners-shell-local'
|
||||||
|
@ -12,8 +13,12 @@ sidebar_current: 'docs-provisioners-shell-local'
|
||||||
|
|
||||||
Type: `shell-local`
|
Type: `shell-local`
|
||||||
|
|
||||||
The local shell provisioner executes a local shell script on the machine running
|
shell-local will run a shell script of your choosing on the machine where Packer
|
||||||
Packer. The [remote shell](/docs/provisioners/shell.html) provisioner executes
|
is being run - in other words, it shell-local will run the shell script on your
|
||||||
|
build server, or your desktop, etc., rather than the remote/guest machine being
|
||||||
|
provisioned by Packer.
|
||||||
|
|
||||||
|
The [remote shell](/docs/provisioners/shell.html) provisioner executes
|
||||||
shell scripts on a remote machine.
|
shell scripts on a remote machine.
|
||||||
|
|
||||||
## Basic Example
|
## Basic Example
|
||||||
|
|
Loading…
Reference in New Issue