Open DavidGhiro opened 3 years ago
Hi @DavidGhiro I am facing same problem with Packer. Did you mange to figure out what's the problem?
==> amazon-ebs: Provisioning with Ansible...
--
397 | amazon-ebs: Setting up proxy adapter for Ansible....
398 | ==> amazon-ebs: Executing Ansible: ansible-playbook -e packer_build_name="amazon-ebs" -e packer_builder_type=amazon-ebs --ssh-extra-args '-o IdentitiesOnly=yes' --vault-password-file vault-password -e ansible_ssh_private_key_file=/tmp/ansible-key656332028 -i /tmp/packer-provisioner-ansible690532395 /codebuild/output/src777574068/src/github.com/xxxx/terraform-it-packer/packer/ansible-standard-linux/site.yml
399 | amazon-ebs: usage: ansible-playbook [-h] [--version] [-v] [-k]
Hi! I try build image by packer. And i have same issue Source code https://github.com/patsevanton/packer-ansible-active-directory-yandex-cloud
ansible-playbook -e packer_build_name="yandex" -e packer_builder_type=yandex --tags install --extra-vars ansible_port=5986 ansible_connection=winrm ansible_winrm_transport=basic ansible_user=Administrator ansible_password=xxxxxxxxx ansible_winrm_server_cert_validation=ignore -i /home/apatsev/packer-ansible-active-directory-yandex-cloud/packer-provisioner-inventory /home/apatsev/packer-ansible-active-directory-yandex-cloud/ansible/packer_active_directory.yml
usage: ansible-playbook [-h] [--version] [-v] [-k] [--private-key PRIVATE_KEY_FILE] [-u REMOTE_USER] [-c CONNECTION] [-T TIMEOUT] [--ssh-common-args SSH_COMMON_ARGS]
[--sftp-extra-args SFTP_EXTRA_ARGS] [--scp-extra-args SCP_EXTRA_ARGS] [--ssh-extra-args SSH_EXTRA_ARGS] [--force-handlers] [--flush-cache] [-b]
[--become-method BECOME_METHOD] [--become-user BECOME_USER] [-K] [-t TAGS] [--skip-tags SKIP_TAGS] [-C] [--syntax-check] [-D] [-i INVENTORY] [--list-hosts]
[-l SUBSET] [-e EXTRA_VARS] [--vault-id VAULT_IDS] [--ask-vault-password | --vault-password-file VAULT_PASSWORD_FILES] [-f FORKS] [-M MODULE_PATH]
[--list-tasks] [--list-tags] [--step] [--start-at-task START_AT_TASK]
playbook [playbook ...]
ansible-playbook: error: unrecognized arguments: /home/apatsev/packer-ansible-active-directory-yandex-cloud/ansible/packer_active_directory.yml
Inventory
cat packer-provisioner-inventory
default ansible_host=xxxx ansible_connection=winrm ansible_winrm_transport=basic ansible_shell_type=powershell ansible_user=apatsev ansible_port=5986
I'm trying to build a debian template. But I always get this error "proxmox: ansible-playbook: error: unrecognized arguments:". It looks like missing quotes. What am I doing wrong?