Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diegoaceneves/c8849c2087868f5cbc567d4aeb889320 to your computer and use it in GitHub Desktop.
Save diegoaceneves/c8849c2087868f5cbc567d4aeb889320 to your computer and use it in GitHub Desktop.
amazon-ebs: output will be in this color.
==> amazon-ebs: Prevalidating any provided VPC information
==> amazon-ebs: Prevalidating AMI Name: teste 1622925177
amazon-ebs: Found Image ID: ami-01de8ddb33de7a3d3
==> amazon-ebs: Creating temporary keypair: packer_60bbdf79-f3bd-d02d-aa96-0cefed921c8c
==> amazon-ebs: Creating temporary security group for this instance: packer_60bbdf7e-1663-83fd-e212-8b6e8bf17a5e
==> amazon-ebs: Authorizing access to port 22 from [0.0.0.0/0] in the temporary security groups...
==> amazon-ebs: Launching a source AWS instance...
==> amazon-ebs: Adding tags to source instance
amazon-ebs: Adding tag: "Name": "Packer Builder"
amazon-ebs: Instance ID: i-01168cd536b763c6f
==> amazon-ebs: Waiting for instance (i-01168cd536b763c6f) to become ready...
==> amazon-ebs: Using ssh communicator to connect: 52.55.213.139
==> amazon-ebs: Waiting for SSH to become available...
==> amazon-ebs: Connected to SSH!
==> amazon-ebs: Provisioning with Ansible...
amazon-ebs: Setting up proxy adapter for Ansible....
==> amazon-ebs: Executing Ansible: ansible-playbook -e packer_build_name="amazon-ebs" -e packer_builder_type=amazon-ebs --ssh-extra-args '-o IdentitiesOnly=yes' -e ansible_ssh_private_key_file=/tmp/ansible-key667936991 -i /tmp/packer-provisioner-ansible973639858 /app/ansible/main.yml
amazon-ebs:
amazon-ebs: PLAY [Instalando o WebServer] **************************************************
amazon-ebs:
amazon-ebs: TASK [Gathering Facts] *********************************************************
amazon-ebs: ok: [default]
amazon-ebs: [WARNING]: Platform linux on host default is using the discovered Python
amazon-ebs: interpreter at /usr/bin/python3, but future installation of another Python
amazon-ebs: interpreter could change the meaning of that path. See https://docs.ansible.com
amazon-ebs: /ansible/2.10/reference_appendices/interpreter_discovery.html for more
amazon-ebs: information.
amazon-ebs:
amazon-ebs: TASK [Atualizando repositórios] ************************************************
amazon-ebs: fatal: [default]: FAILED! => {"changed": false, "msg": "Failed to lock apt for exclusive operation: Failed to lock directory /var/lib/apt/lists/: E:Could not open lock file /var/lib/apt/lists/lock - open (13: Permission denied)"}
amazon-ebs:
amazon-ebs: PLAY RECAP *********************************************************************
amazon-ebs: default : ok=1 changed=0 unreachable=0 failed=1 skipped=0 rescued=0 ignored=0
amazon-ebs:
==> amazon-ebs: Provisioning step had errors: Running the cleanup provisioner, if present...
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Cleaning up any extra volumes...
==> amazon-ebs: No volumes to clean up, skipping
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' errored after 2 minutes 19 seconds: Error executing Ansible: Non-zero exit status: exit status 2
==> Wait completed after 2 minutes 19 seconds
==> Some builds didn't complete successfully and had errors:
--> amazon-ebs: Error executing Ansible: Non-zero exit status: exit status 2
==> Builds finished but no artifacts were created.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment