lobsterdore / aws-ha-deployment-example

A simple go app with vagrant for testing, packer for building and a cloudformation template for deployment
18 stars 6 forks source link

Error bake image in AWS us-west-2 image ami-9dbea4fc #1

Open pilgrim2go opened 8 years ago

pilgrim2go commented 8 years ago

The error is

    amazon-ebs: Reading state information...
    amazon-ebs: The following extra packages will be installed:
    amazon-ebs: libgmp10 python-crypto python-httplib2 python-jinja2 python-markupsafe
    amazon-ebs: python-paramiko python-setuptools python-support sshpass
    amazon-ebs: Suggested packages:
    amazon-ebs: python-crypto-dbg python-crypto-doc python-jinja2-doc
    amazon-ebs: The following NEW packages will be installed:
    amazon-ebs: ansible libgmp10 python-crypto python-httplib2 python-jinja2
    amazon-ebs: python-markupsafe python-paramiko python-setuptools python-support sshpass
    amazon-ebs: 0 upgraded, 10 newly installed, 0 to remove and 83 not upgraded.
    amazon-ebs: Need to get 1,558 kB of archives.
    amazon-ebs: After this operation, 8,230 kB of additional disk space will be used.
    amazon-ebs: WARNING: The following packages cannot be authenticated!
    amazon-ebs: ansible
    amazon-ebs: E: There are problems and -y was used without --force-yes

I changed provision.yml

to

      apt:
        update_cache: yes
        force: yes
        name: "{{ item }}"

have force: yes to make it work

lobsterdore commented 8 years ago

Good catch, I will investigate and fix soon.