Giter VIP home page Giter VIP logo

Comments (5)

hryamzik avatar hryamzik commented on July 23, 2024

Is your ansible version below 1.6?

from docker.ubuntu.

joshuacox avatar joshuacox commented on July 23, 2024

well locally:

> ansible --version                                                                                                                                                          ~/git/dacksible/packer(master)@stealth
ansible 1.8.4
  configured module search path = /usr/share/ansible

But the error is from the one packer is using:
https://www.packer.io/docs/provisioners/ansible-local.html
which I imagine is pretty new, but I'll rebuild the machine again in debug mode and get a ansible --version from it

from docker.ubuntu.

angstwad avatar angstwad commented on July 23, 2024

That's gotta be the issue. You're missing the version_compare remotely in the packer VM.

from docker.ubuntu.

joshuacox avatar joshuacox commented on July 23, 2024

ok, so you guys nailed it. the version was 1.5.4, and packer may be controlling it, but it's the ansible inside the VM actually doing the work so I guess trusty is too old already, changing my install procedure from:

#/bin/sh
apt-get update
apt-get install -y sudo ansible python-apt python-pycurl python-pip python-virtualenv

to:

#/bin/sh
apt-get install software-properties-common
apt-add-repository ppa:ansible/ansible
apt-get update
apt-get install -y sudo ansible python-apt python-pycurl python-pip python-virtualenv

that should get me a newer ansible and clear this up.

from docker.ubuntu.

angstwad avatar angstwad commented on July 23, 2024

Glad to hear it that was the issue. Hit us up if you encounter more stuff. 😄

from docker.ubuntu.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.