|
|
|
|
|
by samuell
781 days ago
|
|
Ansible is definitely requiring constant lookup in the documentation. I've found a pretty good workflow with using ansible-doc though, with two-three aliases that I use constantly: alias adl='ansible-doc --list'
alias adls='ansible-doc --list | less -S'
alias ad='ansible-doc'
Then I'll:1. Use adls to quickly search (in less with vim bindings) for relevant commands, 2. Check up the docs with `ad <command>`. 3. Almost always immediately jump to the end (`G`) to see the examples, which typically provides a direct answer to what I need. Since authoring Ansible scripts is so dependent on the docs, I think they really should make this process work better out of the box though, providing some interface to do these lookups quicker without a lot of custom aliases. |
|
[0] https://docs.ansible.com/ansible/latest/collections/index_mo...