dougluce
aaaf37ae41
Don't bomb if original didn't exist ( #2295 )
...
If we don't have an existing file, original ends up as None. Bug
introduced in 70fa125
2016-12-08 11:34:17 -05:00
Michael Scherer
06e3950efb
Port patch.py to python3/python2.4 syntax ( #2276 )
2016-12-08 11:34:16 -05:00
Hans-Joachim Kliemeck
393ea3293c
blockinfile will always add newline at EOF ( #2261 )
2016-12-08 11:34:15 -05:00
Toshio Kuratomi
e95c069aa6
the ansible version constant is now in a different place
2016-12-08 11:34:13 -05:00
Michael Scherer
814efc1418
Use path type for blockinfile 'dest' argument ( #2192 )
2016-12-08 11:34:13 -05:00
Toshio Kuratomi
fda13deb08
Switch blockinfile to using the latest best way to get ansible version
2016-12-08 11:34:11 -05:00
Toshio Kuratomi
07e150779d
Switch from deprecated ANSIBLE_VERSION to ansible.__version__
2016-12-08 11:34:08 -05:00
Michael Scherer
2760c2ded0
Reindent with_items, fix #1849
2016-12-08 11:33:58 -05:00
Toshio Kuratomi
5b84102a15
Doc fixes
2016-12-08 11:33:56 -05:00
Brian Coca
88c946ba4d
added docs to blockinfile with_ interactions
...
fixes #1592
2016-12-08 11:33:50 -05:00
Ritesh Khadgaray
c3e9c54f29
files/blockinfile.py : ERROR: version_added for new option (follow) should be 2.1. Currently 0.0
2016-12-08 11:33:49 -05:00
Brian Coca
4702cc9b1b
added follow docs back, removed from shared
2016-12-08 11:33:49 -05:00
Charles Ferguson
f4a533fa95
Update 'patch' documentation for src, remote_src, backup and binary.
...
The patch module has a few missing items, and inconsistencies, in its
documentation. A few of which are addressed here.
Within Ansible documentation, the choices for boolean values are
commonly 'yes', and 'no'. We standardise the options on that.
'remote_src' documentation uses 'False' and 'True' for its documentation,
so these have been updated in both the choices and default.
'src' documentation refers to 'remote_src', so is updated to use
the 'no' choice.
'backup' did not describe its options and default at all, so we add
them.
'binary' default used 'False', but specified the type as 'bool' which is
implicitly documented as 'yes'/'no', so we make that 'no' as well.
2016-12-08 11:33:48 -05:00
YAEGASHI Takeshi
ae72b7c12c
New module: blockinfile
2016-12-08 11:33:34 -05:00
Robert Buchholz
7c44de7368
patch: Add binary option that maps to --binary to handle CLRF patches
2016-12-08 11:32:58 -05:00
Greg DeKoenigsberg
c65a612d1f
Changes to author formatting, remove emails
2016-12-08 11:32:51 -05:00
Brian Coca
7ccd958ffd
added version added to patch's bacukp
2016-12-08 11:32:47 -05:00
thread13@users.noreply.github.com
5e4a18fcd4
patch module: 'backup_copy' parameter renamed to 'backup'
2016-12-08 11:32:47 -05:00
thread13@users.noreply.github.com
b9ec2ed826
Update patch.py
2016-12-08 11:32:46 -05:00
Brian Coca
a7b46316c1
removed executable bit
2016-12-08 11:32:42 -05:00
Brian Coca
d344a3fde3
more string corrections
2016-12-08 11:32:39 -05:00
Matt Martz
8bd5757720
Fix up modules that have python24 syntax error
2016-12-08 11:32:36 -05:00
Michael Scherer
298e782ff7
Expand user in path, fix #385
2016-12-08 11:32:33 -05:00
Sébastien Gross
47def27127
Update documentation for src parameter.
2016-12-08 11:32:32 -05:00
Sébastien Gross
5f6121856f
Make sure the absolute patch file is passed to the patch command.
...
According the patch(1) manpage:
The --directory option change to the directory dir immediately, before
doing anything else.
Thus if file is not relative to dir and making file absolute ensure that
patch will find it.
2016-12-08 11:32:32 -05:00
Sébastien Gross
4e24d2cdf7
Make sure patch command is found on remote system.
2016-12-08 11:32:32 -05:00
André Luiz dos Santos
f569b512c9
Variable name typo
2016-12-08 11:32:27 -05:00
Brian Coca
60459795b0
added version to patch and remote_src to allow for controlling if src is on master or target
2016-12-08 11:32:25 -05:00
Jakub Jirutka
8383c1c8d3
Add new module "patch"
2016-12-08 11:32:25 -05:00