Hi Joel,
This is a great idea! I'd love to see it expanded with a short
description of each item. In 1.2 this list will also get simpler, with
the upgraded conditionals and the simplified variable access. But this
looks great and would be really helpful to a lot of people, I think.
-Tim
On Wed, Apr 10, 2013 at 4:07 AM, Joel Rebello <
joel...@gmail.com> wrote:
>
> Hey,
>
> I realized I was writing up all these operators in my scratchpad so I can
> refer to them as a cheat sheet .
>
> I think it'll help a lot of users if we had some doc that comprehensively
> lists all possible ansible operators and links each one to a
> snippet/example ..
> The list below is based on the latest ansible release
>
> This list is not complete or correct, I'm hoping other ansible users can
> contribute and we end up some sort of doc that lists all of them :)
> Feel free to point out and flame me on things I may have missed out or are
> incorrect (I'm very much an ansible noob as of now)
>
>
>
> conditionals
> ===========
> when_failed:
> when_changed:
> when_string:
> when_boolean:
> when_integer:
> when_set:
> when_unset:
> only_if:
>
> Lookups
> =======
> with_items:
> with_sequence:
> with_fileglob:
> with_file:
> with_lines:
> with_pipe:
> with_env:
> with_dnstxt:
> with_template:
> with_redis_kv:
> with_password:
> first_found:
> with_nested:
> first_available_file:
>
>
> valid playbook definitions
> ========
> hosts:
> serial:
> gather_facts:
> connection:
> tasks:
> vars:
> vars_files:
> vars_prompt:
> sudo:
> user:
> sudo_user:
> roles:
>
>
> valid task parameters
> ==============
> name:
> include:
> action:
> notify:
> async:
> poll:
> tags:
> ignore_errors:
> local_action:
> delegate_to:
> environment:
> <module>
>
>
> Variables (non facts?)
> =========
> hostvars
> inventory_hostname
> group_names
> groups
>
>
> Accessing Variables
> ===================
> in playbooks:
> $varname OR ${varname}
> ${varname.<element>} # if its a list of lists
>
> in templates/jinja2:
> {{ varname }}
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
ansible-proje...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.
>
>
--
Tim Gerla
t...@gerla.net