-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Labels
enhancementNew feature or requestNew feature or request
Description
When running an ansible provisioner that triggers reboots the builder communicator stops and cannot reconnect.
As the provisioner is:
- local to the Packer host running the builder, and
- already aware and perfectly capable of managing disconnections gracefully
This feature request is for Packer to have an option available to the provisioner step to ignore every disconnection occuring during such provisioning step and simply wait for the provisioning command to return (i.e. Ansible for my case).
Use Case(s)
Let ansible handles completely the provisioning step, including machine reboots.
Potential configuration
Availability of a provisioner option to ignore communicator disconnection.
provisioner "ansible" {
playbook_file = "./playbook.yaml"
ignore_disconnect = True
}
Potential References
Attached to this issue I reported a MWE where the communicator disconnection is blocking the entire Packer process.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request