DevOps · Service
Ansible
Packer's Ansible provisioner runs an Ansible playbook during an image build. It creates or uses an inventory, connects to the target, and applies the playbook.
Last updated
Syntax
provisioner "ansible" {
playbook_file = "path/to/playbook.yml"
}In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
ansible_env_varsansible_ssh_extra_argsinventory_fileinventory_file_templatekeep_inventory_filegalaxy_fileuse_proxypacker_build_name