Commit Graph

116 Commits (b92cb935391192bd5ff0e43cb973df310836c856)

Author SHA1 Message Date
Timothy Appnel fde7c14cd0 v1 variable precedence order was off.
Noticed that the v1 variable precedence docs list facts discovered as having a lower precedence than inventory variables. It is in reality the other way around. The v2 section gets this right.
9 years ago
Toshio Kuratomi 5e0d55ae5b Change the dict attribute collision warning to recommend using bracket notation 9 years ago
Robin Schneider ad0d299c56
Avoid key names which are valid attributes for data types in Python.
Closes #12990.

Alternative to #12992

This PR excludes all attributes of the following data types: lists,
tuples, dicts, sets, integers, floats, strings and Unicode objects.

It is expected that only the attributes of dicts and sets would cause an
problem like in #12990.
9 years ago
Sandra Wills bc14ed380e variables precedence reordering and added para to help explain precedence rules 9 years ago
Sandra Wills 8501a46baa vault and variables best practices info added, edited, and referenced
This work fulfills PR #11799. Moved the content out of the vault file,
into best practices, edited it, then referenced it from variables and
vaults content files.
9 years ago
Sandra Wills 32cb2fa215 removed repetition of note and replaced with an include directive
ansible_ssh_* changes from 1.9 to 2.0, original note made into a separate file
for easier editing, and an include for this new file added to each of the 6 file affected
by this change
9 years ago
Sandra Wills 748ff72b6b fixed typo, depricated --> deprecated, in all 6 notes 9 years ago
Sandra Wills f24fbb04c9 note modified a bit, then reviewed/approved by jmartin
Ansible 2.0 has depricated the “ssh” from ansible_ssh_user,
ansible_ssh_host, and ansible_ssh_port to become ansible_user,
ansible_host, and ansible_port. If you are using a version of
Ansible prior to 2.0, you should continue using the older style
variables (ansible_ssh_*). These shorter variables are ignored,
without warning, in older versions of Ansible.
9 years ago
Sandra Wills 6af2b2a4cb added note about ansible_ssh_* change
added a note like the following to each file hit with unlabled 2.0 changes...
Ansible 2.0 moved away from using ansible_ssh_* variables to accepting
ansible_* variables. If you are using a version of Ansible prior to 2.0,
you should continue using the older style variables (ansible_ssh_*), such
as ansible_ssh_user instead of ansible_user and ansible_ssh_port instead of
ansible_port, which appear in the following content. These shorter variables
are ignored, without warning, in older versions of Ansible.
9 years ago
Brian Coca 75f99f873b Merge pull request #12379 from bcoca/document_vars
Document vars

merging so we can push PRs against the common repo
9 years ago
Austin Ziegler 67a980c9ef Describe the units for fact_caching_timeout 9 years ago
Brian Coca 0aeaacb947 fixed zpellings 9 years ago
Brian Coca 4241df41aa fixed typoe (thanks @resmo) 9 years ago
Brian Coca 7f52d909c4 rewrote 1.x section of precedence to prevent promissing specificity to those reading docs for earlier versions 9 years ago
Brian Coca 6e34e84417 documenting var precedence
made new sections for vars, started explaining scope, gave example on command line override of connection vars
added some formatting changes and clarifications
9 years ago
Brian Coca 5c7bca9e17 Merge pull request #12369 from bborysenko/docsite/playbooks_variables
docs - minor fixes to playbooks_variables
9 years ago
Brian Coca 43ea5f0853 added note about registered variables 9 years ago
Borys Borysenko 6b396cdab7 fix code block quoting and boldface for modules name 9 years ago
Abhijit Menon-Sen f56a6e0951 Rename ansible_ssh_{host,port,user} in docs to ansible_*
The _ssh variants will continue to work, but the shorter, more generic
names are preferred now.
9 years ago
Brian Coca 827f2ff0ac corrected var name 9 years ago
Michael Scherer c2c20baf01 Add more explicit documentation on ansible_nodename and ansible_hostname
Fix #9971, based on text from Paul Czarkowski
9 years ago
Brian Coca 493d91cb55 Merge pull request #11531 from tamsky/tamsky-document-jsonfile
document `jsonfile` fact cache
9 years ago
Marc Tamsky aaf59319e4 document jsonfile and provide example config 9 years ago
Gerard Lynch 4942f18100 added role_path to magic var section 10 years ago
Peter Parente 2aba3b4172 Fix typo: "name" to "role" 10 years ago
Maciej Delmanowski c866a26d81 Move Jinja2 filters documentation to separate file 10 years ago
Brian Coca 62a6378c4a Merge pull request #8792 from bcoca/ternary_filter
ternary filter
10 years ago
Brian Coca f05a1085e9 Merge pull request #9249 from tjanez/doc-add_note_about_escaping_with_regex_replace
Added a note about escaping backreferences when using 'regex_replace' filter
10 years ago
Björn Andersson 65e4f2b2bc Add filter to turn a string into a UUID
This filter was made because I needed to create idempotent UUIDs when
installing the agent for Go (http://go.cd), which uses UUIds to
distinguish the agents from each other.

It uses a newly created Ansible namespace to distinguish UUIDs created
by Ansible from any other source. The new namespace is a random one
created by uuidgen on OSX.
10 years ago
Brian Coca 2a9d5054bf Merge pull request #9995 from bcoca/hash_filters
Hash filters
10 years ago
Brian Coca b28ef1701f Merge pull request #9896 from resmo/fix/doc
doc: mention smart gathering for facts caching
10 years ago
Brian Coca ffe1dcde28 Merge pull request #9713 from bcoca/fact_cache_n_gathering
mentioned gathering settings in fact caching.
10 years ago
Brian Coca 35247fabb8 added hash and password_hash functions
documented new hashing filters and preexisting hashing filters
removed extra sha1 example in others, clarified some of the hashing examples
10 years ago
René Moser a88e928bf0 doc: mention smart gathering for facts caching 10 years ago
Toshio Kuratomi 7ab1e52575 Merge pull request #9832 from bcoca/math_filters
math filters!
10 years ago
Brian Coca b07ce8b942 removed redundant math functions as jinja2 provides abs() and round()
already
10 years ago
Brian Coca 6a3c26eb70 removed stray j 10 years ago
Brian Coca 7a43d40050 math filters! 10 years ago
Toshio Kuratomi b74a02301b Fix documentation syntax problems 10 years ago
Toshio Kuratomi ff970eabd8 Add role vars to differentiate with role defaults 10 years ago
Brian Coca 2d17d18c1b mentioned gathering settings in fact caching. 10 years ago
Adrian Lopez f27ffdcbf0 Is it not possible to set a comment in the same line 10 years ago
Brian Coca 02f6ca034e zpelling fix 10 years ago
Brian Coca 0edaa6f790 Merge pull request #9270 from bcoca/do_the_shuffle
added new 'shuffle' filter
10 years ago
Brian Coca 8d37c6f091 minor clarifications of variable precedence 10 years ago
Brian Coca 0f2f022bb0 removed YAML as documented local facts format as it is not supported and
would require extra modules on target.
10 years ago
Toshio Kuratomi f1267c0b05 Move from md5 to sha1 to work on fips-140 enabled systems 10 years ago
Niku Toivola 5a11315dc7 add documentation for the delegate_to magic variable 10 years ago
Juri Glass 9974ba01e3 added fact caching hint 10 years ago
Juri Glass c16c527923 Update playbooks_variables.rst
There is some kind of duplicated content with http://docs.ansible.com/faq.html#how-do-i-loop-over-a-list-of-hosts-in-a-group-inside-of-a-template and this gotcha isn't listed here.
10 years ago