Commit Graph

18846 Commits (0656d1466ad4cc9161b7a390f8b4b8fc8fa7a34b)
 

Author SHA1 Message Date
James Cammarata 0656d1466a Adds two variables to facts when a task fails and a rescue block starts
`ansible_failed_task`:
   Contains the task data, essentially a serialized view of the Task() object.
`ansible_failed_result`:
   Contains the result of the task failure, which is identical in function
   to registering the result. Doing so automatically like this saves the user
   from having to register every result in a block and then trying to figure
   out which result had the failure

Similar to the way try/except/finally work, these variables will not be
available in the `always` portion of a block unless there is a corresponding
`rescue` first.

Fixes #12341
9 years ago
James Cammarata 26a4761d0f Fix logic error in script action plug related to use of shell.exists 9 years ago
Toshio Kuratomi e003ef93fc Update submodule refs 9 years ago
Brian Coca e1461ef792 Merge pull request #15200 from wimnat/feature/handle_lists_in_snake_dict_creation
Handle lists during dict recursion
9 years ago
René Moser c0618794a2 Merge pull request #15213 from resmo/fix/cloudstack-api-secret-arg
cloudstack: fix bug, api_secret always None
9 years ago
James Cammarata a8dbd3dee9 Pass the variable manager into load_list_of_blocks for include files
Fixes #15194
9 years ago
Brian Coca 4b3257c4fe Merge pull request #15208 from bcoca/constants_pathlist
centralize path list handling
9 years ago
Brian Coca 93e6bb6daf added new meta action 9 years ago
Brian Coca 5dfc013e18 Merge pull request #14971 from bcoca/clear_facts
meta: clear_facts
9 years ago
Brian Coca 5022fe9adc Merge pull request #15209 from temal-/devel
Add '--skip-tags' to ansible-pull
9 years ago
Rene Moser 65e61e340a cloudstack: fix bug, api_secret always None
In case if api args are used, api_secret is None in every cloudstack module.
9 years ago
Nathaniel Case e4e913b331 Override params from environment variables, if set.
Fix a typo while I'm in the area.

Handle having None set in module.params more intelligently
9 years ago
James Cammarata eab4ce19f3 Making the return parsing in ActionBase generic for reuse
Now also correctly parses the return value for the _low_level_execute_command
9 years ago
James Cammarata 4fc0aadd84 Only combine vars in include_vars if both are mappings
Fixes #15184
9 years ago
Brian Coca c09e085480 Merge pull request #14735 from jsok/open_url-netrc
Lookup netrc for credentials in open_url
9 years ago
Malte Krupa 3c954e6572 Add '--skip-tags' to ansible-pull 9 years ago
Brian Coca 92d154f4ef centralize path list handling
move it to constants and avoid duplicating code or misinforming
developers on the nature of the data
9 years ago
Brian Coca 3f6166d2bf always return rc 9 years ago
Brian Coca 65c42605fe Merge pull request #15202 from wzyboy/patch-2
Fix a typo
9 years ago
Zhuoyun Wei 1a13fb63c6 Fix a typo 9 years ago
Rene Moser cb7b3b489d changelog: doc: new os_user_role module 9 years ago
Rob White a46de20772 Handle lists during dict recursion 9 years ago
Peter Sprygada fa6464e807 feature to localize prompt search logic for ios shared module
Prompt search logic is now localized to the ios shared module instead
of using the common regexps in the shell module.  This resolves a number
of problems with ios modules functioning properly
9 years ago
James Cammarata 2be1726350 Don't remove _raw_params from static include args 9 years ago
Jason McKerr 2e529d7a51 Update committer_guidelines.rst
Adding Chris Houseknecht to committers
9 years ago
Toshio Kuratomi 0c57411ff5 Merge pull request #15189 from nitzmahone/fix_mac_chown_chmod
fix Mac chown/chmod -R issue, add error checks
9 years ago
nitzmahone 05af5c88ea fix Mac chown/chmod -R issue, add error checks
The changes to chown/chmod were broken on Mac (-R was being appended to the end of the command- OSX requires it before the file list).

A number of base action remote setup commands were also blindly proceeding without checking for success. Added error raises for unrecoverable failure cases.
9 years ago
James Cammarata 5fdac707fd New unit tests for #13630 fix 9 years ago
James Cammarata f2713f764c Take previous jinja2 blocks into account in splitter when we see quotes
Previously, split_args() was not taking print/block/comment depth into account
when splitting things, meaning that if there was a quote character inside an
un-quoted variable (ie. {{ foo | some_filter(' ') }}), it was incorrectly
splitting on the quotes instead of continuing to append to the previous param.

Fixes #13630
9 years ago
Brian Coca 0c92ec5e8f proposals were moved to ansible/proposals 9 years ago
Brian Coca 04610106a3 Merge pull request #15173 from mattclay/issue6072
Support remote_user in jail connection plugin.
9 years ago
Brian Coca e9a4526251 allow bypassing executable setting
if you set executable to an empty string this avoids passing one to the command constructor
fixes #14813
9 years ago
Brian Coca bbbf7a558a Merge pull request #15183 from wimnat/feature/boto3_helpers
Some helper functions to work with boto3
9 years ago
Rob White a5b05922ed Some helper functions to work with boto3 9 years ago
Brian Coca ab51384af1 added new ip4_hex filter to changelog 9 years ago
Brian Coca c303ed24b5 Merge pull request #15159 from sigio/filter-ip4-hex
Add ip4_hex filter to convert ip-address to hex notation
9 years ago
Brian Coca b77bba8f9f Merge pull request #15175 from wimnat/feature/camel_case_fixing
Add function to convert CamelCased key names to snake_names
9 years ago
Brian Coca 363384f517 Merge pull request #15174 from mattclay/conn-msg-host
Fix inconsistent/missing host names in messages.
9 years ago
Brian Coca 9e1f835da8 Merge pull request #15180 from DavidWittman/module-docs-fix-choices
Fix boolean choices in module docs fragments
9 years ago
David Wittman 5036d1742c Fix boolean choices in module docs fragments
A few of the docs fragments have the available choices for some params
defined as "BOOLEANS". Because choices accepts a list, it treats
"BOOLEANS" as an iterable and then generates a list composed of each
letter.

Instead, define the available choices as a list of `['yes', 'no']`,
as is common in most other modules.
9 years ago
Toshio Kuratomi 0fffb6c60c Merge pull request #15163 from ansible/synchronize-connection-vs-play_context
Use _connection instead of _play_context for information about the connection
9 years ago
Brian Coca c6c3fd79c2 Merge pull request #15168 from bcoca/script_exists_fix
Script exists fix
9 years ago
Abhijit Menon-Sen 4db7e12898 Merge pull request #12113 from msabramo/contrib_inventory_consul_io_add_logging
Add optional logging to consul_io inventory script
9 years ago
René Moser f2a81e580d Merge pull request #15169 from mgruener/test_cloudflare_dns
Integration tests for the cloudflare_dns module
9 years ago
Rob White ef8c1124d0 Add function to convert CamelCased key names to snake_names 9 years ago
James Cammarata eff89d6290 Merge pull request #15140 from berlic/args-splitter-exception-context
Show error context in args splitter exception
9 years ago
James Cammarata c157b872cc Merge pull request #15129 from kevinlondon/patch-1
Update faq.rst
9 years ago
James Cammarata d00ac6e2d1 Merge pull request #15072 from rajatguptarg/fix-requirements
Add pycrypto as a requirement to run tests
9 years ago
Matt Clay 5fdc29e00f Fix inconsistent/missing host names in messages. 9 years ago
Brian Coca e8d455b99f Merge pull request #15171 from mattclay/issue15136
Fix ISSUE_TEMPLATE.md link.
9 years ago