Highlight which user Ansible provisioner uses

SSIA.
This commit is contained in:
Thor K. Høgås 2018-07-02 10:17:24 +02:00 committed by GitHub
parent 5952892e10
commit b1639a782b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 3 deletions

View File

@ -14,9 +14,10 @@ Type: `ansible`
The `ansible` Packer provisioner runs Ansible playbooks. It dynamically creates The `ansible` Packer provisioner runs Ansible playbooks. It dynamically creates
an Ansible inventory file configured to use SSH, runs an SSH server, executes an Ansible inventory file configured to use SSH, runs an SSH server, executes
`ansible-playbook`, and marshals Ansible plays through the SSH server to the `ansible-playbook`, and marshals Ansible plays through the SSH server to the
machine being provisioned by Packer. Note, this means that any `remote_user` machine being provisioned by Packer.
defined in tasks will be ignored. Packer will always connect with the user
given in the json config. -> **Note:**: Any `remote_user` defined in tasks will be ignored. Packer will
always connect with the user given in the json config for this provisioner.
## Basic Example ## Basic Example