community.general/lib/ansible/plugins
Peter Sprygada 9111efc975 adds two new regex filters for use in playbooks (#14696)
The first filter is regex_search which adds the ability to do a regex
search on a fact.  The filter supports returning either all capture groups
or a set of capture groups (either by index or named).

Example usage of regex_search filter

debug: msg="{{ out.stdout[0] | regex_search('image version. (?P<test>\d+).(\d+)', '\\g<test>', '\\2' ) }}"

The second filter is regex_findall with adds the capability to do a
regex findall on a fact or variable and return all occurances of a pattern.

debug: msg="{{ out.stdout[0] | regex_findall('vlan (\d+)' }}"

The filter supports two addtional keyword arguments, ignorecase=[true, false]
and multiline=[true, false]
2016-04-14 14:54:03 -04:00
..
action added suport rsync protocol (#12197) 2016-04-08 11:42:07 -04:00
cache Expand tilde after expanding vars 2016-04-05 22:27:07 -07:00
callback On change in diff-mode we don't need to see file content in task output 2016-04-01 18:03:51 +02:00
connection Also fix intermittent ssh error using pty's for paramiko 2016-04-12 08:35:48 -04:00
filter adds two new regex filters for use in playbooks (#14696) 2016-04-14 14:54:03 -04:00
inventory Bundle a new version of python-six for compatibility along with some code to make it easy for distributions to override the bunndled copy if they have a new enough version. 2015-10-16 08:21:28 -07:00
lookup Use to_bytes and to_str instead of str as str is unsafe. 2016-04-04 12:57:32 -07:00
shell Use /var/tmp is user set remote_tmp below /var/tmp. 2016-04-11 21:03:13 -07:00
strategy Controller-side module caching. 2016-04-12 08:01:07 -07:00
test Reverse boilerplate order because from __future__ must be the first code in the file 2016-03-24 20:08:39 -07:00
vars Making the switch to v2 2015-05-03 21:47:26 -05:00
__init__.py Remove workaround for fixed bug. (#15340) 2016-04-10 09:24:54 -07:00