Comments (4)
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.
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.
@jeichler @ericzolf I've noticed there hasn't been any update here in quite a while. What's the status?
from automation-good-practices.
no new status, but I can pick it up and send a PR soon-ish. @mophahr
from automation-good-practices.
Related Issues (20)
- This project status HOT 2
- Scope of include_role variables HOT 1
- Should we add a section for Execution Environments? HOT 1
- Add use of !unsafe to good practices
- GPA as ansible-(lint|later) custom rules HOT 2
- Add section on using Fully Qualified Collection Names (FQCN)
- Clarify/remove use of collection_prep for collection documentation HOT 3
- Add a Tips a Tricks section for things which are not requirements but useful knowledge to address typical scenarios HOT 1
- name tasks with a non-capital or capital letter ? HOT 1
- Add supportability to contribution guidelines
- Add recommendation around collections bakes into an EE vs. pulled via collections/requirements.yml HOT 2
- How to name internal roles?
- publish docs automatically HOT 5
- Image variable_precedences.png is not published HOT 2
- Wrong scope in "Restrict your usage of variable types"
- No real examples
- Shall we recommend conventional commits for automation changelogs? HOT 3
- Broken link to docs.adfinis-sygroup.ch HOT 2
- Avoid ansible-lint conflict related to prefix on ansible roles
- Add link-checking to the CiCD pipeline
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from automation-good-practices.