Coder Social home page Coder Social logo

Comments (4)

luken avatar luken commented on May 20, 2024

Updated above, removed the | mandatory as I had hacked up the template file on the LXC host and forgot about the edit, this was likely causing the "stretch" default to be set.

from debops.

drybjed avatar drybjed commented on May 20, 2024

So you are saying that when you run Ansible from macOS, the ansible_distribution_release variable is what, empty? That's kinda weird, since Ansible is gathering facts from the remote host, not macOS. What happens if you run:

ansible <host> -m setup

Do you get "sane" facts, or are variables like ansible_distriburion, ansible_distribution_release, ansible_fqdn missing or empty? What OS release are you using on the remote host you run against?

In the above case I would probably go with the default() method, however ansible_distribution_release is kinda the default, and its a fact that should be defined by Ansible after facts are gathered. It being missing suggests that something is missing from the remote host that you are running against, and this might impact many more DebOps roles than just debops.lxc. I would try and fix this issue first.

from debops.

luken avatar luken commented on May 20, 2024

The above Ansible command run from OSX properly comes back with stretch when run against the LXC host:
"ansible_distribution_release": "stretch",

other facts seem in order. I'll keep looking.

from debops.

luken avatar luken commented on May 20, 2024

Pushed everything back up the hill, killed the mods to the defaults.yml, made sure there was on override being set in inventory, nuked /usr/share/lxc/templates/lxc-debops on the LXC host... and now it is getting set as expected in the template file... Closing issue till it repos.

DEFAULT_RELEASE="stretch"

used to be

DEFAULT_RELEASE=""

Now on to why stretch is not supported in the template file.

from debops.

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.