hashicorp / hashicorp/packer-plugin-ansible

Feature Request use_port

Open
#22 0 comments 0 reactions 0 assignees View on GitHub
enhancement provisioner/ansible-remote
Dominant language
Go
Stars
64
Forks
40
PR merge metrics
No merged PRs in 30d

Description

_This issue was originally opened by @gamethis as hashicorp/packer#9298. It was migrated here as a result of the [Packer plugin split](https://github.com/hashicorp/packer/issues/8610#issuecomment-770034737). The original body of the issue is below._


I would like to have a use_port option added to the ansible-remote provisioner.

#### Feature Description
would like a variable that will add th anisble_port to either the command line or to the inventory file.

#### Use Case(s)
This allows for use of whatever dynamic port is setup by packer.
when using a static inventory file. Rather than the dynamic inventory file.

Contributor guide

Open the contributing guide

Research direction

No files or tests are named. Start by locating the ansible-remote provisioner and its existing port or inventory handling; define how a use_port option should pass the dynamic Packer port to the command line or static inventory, then add coverage for that behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, go
Domain
devops
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.