ansible/v2/ansible
Feanil Patel 0abcebf1e4 Don't convert numbers and booleans to strings.
Before this change if a variable was of type int or bool and the variable was referenced
by another variable, the type would change to string.

eg. defaults/main.yml
```
PORT: 4567
OTHER_CONFIG:
  secret1: "so_secret"
  secret2: "even_more_secret"

CONFIG:
  hostname: "some_hostname"
  port: "{{ PORT }}"
  secrets: "{{ OTHER_CONFIG }}"
```

If you output `CONFIG` to json or yaml, the port would get represented in the output as a
string instead of as a number, but secrets would get represented as a dictionary.  This is
a mis-match in behaviour where some "types" are retained and others are not.  This change
should fix the issue.

Update template test to also test var retainment.

Make the template changes in v2.
Update to only short-circuit for booleans and numbers.

Added an entry to the changelog.
2015-04-11 12:03:42 -04:00
..
compat typofixes - https://github.com/vlajos/misspell_fixer 2014-12-04 22:23:35 +00:00
config Add python3-compat boiler to all core files 2014-10-15 19:22:54 -04:00
errors Move AnsibleBaseBaseYAMLObject's position_info into a property 2015-04-01 14:54:22 -07:00
executor now in v2 everything passes a single passwords hash 2015-04-08 03:17:32 -04:00
inventory Fix v2 for #10426 2015-03-11 21:28:45 -07:00
module_utils Merge pull request #10237 from emonty/remove-auth-token 2015-04-01 12:20:59 -04:00
modules Update module pointers 2015-04-02 12:41:30 -07:00
new_inventory Just move things around so that new_inventory doesn't interfere with testing 2015-03-31 12:58:00 -07:00
parsing Comment to clarify why we add one to the line and column recording 2015-04-10 04:09:50 -07:00
playbook a bunch of updates to connection info and related, to pass down passwords 2015-04-06 22:35:02 -04:00
plugins a bunch of updates to connection info and related, to pass down passwords 2015-04-06 22:35:02 -04:00
template Don't convert numbers and booleans to strings. 2015-04-11 12:03:42 -04:00
utils implemented verbosity, added 5th level and now can see how many plays per playbooko if -vvvvv 2015-04-04 15:54:54 -04:00
vars V2 fixing bugs 2015-04-02 01:19:21 -05:00
__init__.py Making task includes dynamic and fixing many other bugs 2015-02-12 18:17:16 +00:00
constants.py removed folding sudo/su to become logic from constants as it is already present downstream in playbook/play/tasks 2015-03-27 08:45:04 -04:00