Git Product home page Git Product logo

Comments (4)

ericzolf avatar ericzolf commented on September 23, 2024

Some consequences highlighted by a colleague (some are more generic though):

Avoid reading inventory files in scripts as they can contain variables
→ the script likely fails if you need the actual value
Lookups (file, template, ...) are executed on the ansible controller
→ if the playbook assumes ansible controller = provisioned host this leaves the customer with modifications to workaround this assumption
include_vars → same as lookups
Same for loading files in scripts - right now they are not on the ansible controller
Avoid modifying inventory files, ideally provide an ansible role and use set_facts
→ this also makes it more agnostic to the deployment scenario

from automation-good-practices.

jeichler avatar jeichler commented on September 23, 2024

a bit more context: this was something I mentioned for vendors providing "canned playbooks".
@ericzolf I can provide a bit content if this is simething that is deemed wothwhile to mention in this repo.

Just assign this to me in that case.

from automation-good-practices.

mophahr avatar mophahr commented on September 23, 2024

@jeichler @ericzolf I've noticed there hasn't been any update here in quite a while. What's the status?

from automation-good-practices.

jeichler avatar jeichler commented on September 23, 2024

no new status, but I can pick it up and send a PR soon-ish. @mophahr

from automation-good-practices.

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.