github.com/StackPointCloud/packer@v0.10.2-0.20180716202532-b28098e0f79b/test/fixtures/provisioner-ansible/all_options.json (about) 1 { 2 "variables": {}, 3 "provisioners": [ 4 { 5 "type": "shell-local", 6 "command": "echo 'TODO(bhcleek): write the public key to $HOME/.ssh/known_hosts and stop using ANSIBLE_HOST_KEY_CHECKING=False'" 7 }, { 8 "type": "ansible", 9 "playbook_file": "./playbook.yml", 10 "extra_arguments": [ 11 "--private-key", "ansible-test-id" 12 ], 13 "sftp_command": "/usr/lib/sftp-server -e -l INFO", 14 "use_sftp": true, 15 "ansible_env_vars": ["PACKER_ANSIBLE_TEST=1", "ANSIBLE_HOST_KEY_CHECKING=False"], 16 "groups": ["PACKER_TEST"], 17 "empty_groups": ["PACKER_EMPTY_GROUP"], 18 "host_alias": "packer-test", 19 "user": "packer", 20 "local_port": 2222, 21 "ssh_host_key_file": "ansible-server.key", 22 "ssh_authorized_key_file": "ansible-test-id.pub" 23 } 24 ], 25 "builders": [{ 26 "type": "googlecompute", 27 "account_file": "{{user `account_file`}}", 28 "project_id": "{{user `project_id`}}", 29 "image_name": "packerbats-alloptions-{{timestamp}}", 30 "source_image": "debian-8-jessie-v20161027", 31 "zone": "us-central1-a", 32 "ssh_username": "debian" 33 }] 34 }