Comments (1)
Great questions! This is actually something openly being discussed in the Ansible community, and the best place to focus your efforts (or at least hit the 'Subscribe' button) is here: ansible/proposals#19
For my own roles (example: geerlingguy.apache
), I generally do the following:
- Add a few general comments and possibly an inline commented example or two inside
defaults/main.yml
- Document every single variable (unless there's a block of similar variables that are self-explanatory) inside README.md (since this will be the welcoming text on the GitHub repo and on Galaxy for the role).
- Document at least one or two special use cases or examples in the README.md.
- Use the role tests (automated via Travis CI) as an extra 'in use' example or two—you'll be forced to always make sure these examples are correct/working if they're using Travis to build the role!
For really, really complicated roles, you could consider integrating with external docs, but I'd still store the actual docs in the project (I hate having a separate project/site to manage docs vs. the actual code...).
from ansible-for-devops.
Related Issues (20)
- Broken URL: Link to Molecule docs outputs a 404 HOT 1
- Deploy a version controlled application HOT 2
- Molecule CI installation requires molecule-plugins[docker] install HOT 1
- Create Drupal project task is failing with below errors HOT 1
- Flask example is failing in CI tests currently HOT 1
- Chapter 3: CHANGED vs SUCCESS
- Chapter 3: check log files - fix grep command HOT 2
- Chapter 3 - Manage cron jobs
- Broken Link : Chapter 5 - Variable Precedence HOT 1
- Suboptimal command - Chapter 2 - Your first Ansible playbook
- molecule lint is gone. HOT 1
- Add a section for Ansible Semaphore?
- Links to Galaxy documentation are broken HOT 1
- hostvars confusion HOT 2
- Pi4 aarch64 FAILED! => "E: Package 'python-apt' has no installation candidate HOT 1
- RPM Repo(Chapter 6): Permission denied HOT 3
- Link to "sample sudoers file" (Chapter 11) returns Error 404
- molecule init role is gone HOT 5
- Include a Section on Using Goss for Testing
- Chapter 15 Ansible and Docker: No module named 'requests'
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 ansible-for-devops.