From fd32da0e99b2e84c284e307cac6c90e2f7ac8f8d Mon Sep 17 00:00:00 2001 From: Akira Yokochi Date: Tue, 21 Feb 2023 12:06:22 +0000 Subject: [PATCH 1/4] fix document syntax --- plugins/modules/patch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/modules/patch.py b/plugins/modules/patch.py index 0c6fe47..ecedbf6 100644 --- a/plugins/modules/patch.py +++ b/plugins/modules/patch.py @@ -37,7 +37,7 @@ options: src: description: - Path of the patch file as accepted by the GNU patch tool. If - C(remote_src) is 'no', the patch source file is looked up from the + C(remote_src) is C(false), the patch source file is looked up from the module's I(files) directory. type: path required: true From d64db13643f0ffee2a5012049922a955ab3bae26 Mon Sep 17 00:00:00 2001 From: Akira Yokochi Date: Tue, 21 Feb 2023 12:08:02 +0000 Subject: [PATCH 2/4] collection_prep for patch module --- docs/ansible.posix.patch_module.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/ansible.posix.patch_module.rst b/docs/ansible.posix.patch_module.rst index 60c30cf..07f672a 100644 --- a/docs/ansible.posix.patch_module.rst +++ b/docs/ansible.posix.patch_module.rst @@ -84,9 +84,9 @@ Parameters -
Setting to yes will disable patch's heuristic for transforming CRLF line endings into LF.
+
Setting to true will disable patch's heuristic for transforming CRLF line endings into LF.
Line endings of src and dest must match.
-
If set to no, patch will replace CRLF in src files on POSIX.
+
If set to false, patch will replace CRLF in src files on POSIX.
@@ -122,7 +122,7 @@ Parameters -
Setting to yes will ignore white space changes between patch and input..
+
Setting to true will ignore white space changes between patch and input.
@@ -141,7 +141,7 @@ Parameters -
If no, it will search for src at originating/controller machine, if yes it will go to the remote/target machine for the src.
+
If false, it will search for src at originating/controller machine, if true it will go to the remote/target machine for the src.
@@ -157,7 +157,7 @@ Parameters -
Path of the patch file as accepted by the GNU patch tool. If remote_src is 'no', the patch source file is looked up from the module's files directory.
+
Path of the patch file as accepted by the GNU patch tool. If remote_src is false, the patch source file is looked up from the module's files directory.

aliases: patchfile
From 14accca52f5ebc7dbd8d037e51385752db122b48 Mon Sep 17 00:00:00 2001 From: Akira Yokochi Date: Tue, 21 Feb 2023 12:46:54 +0000 Subject: [PATCH 3/4] add changelog fragment --- changelogs/fragments/419-fix-patch-doc.yml | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 changelogs/fragments/419-fix-patch-doc.yml diff --git a/changelogs/fragments/419-fix-patch-doc.yml b/changelogs/fragments/419-fix-patch-doc.yml new file mode 100644 index 0000000..7a39a27 --- /dev/null +++ b/changelogs/fragments/419-fix-patch-doc.yml @@ -0,0 +1,2 @@ +trivial: + - patch - fix format syntax and boolean values on document (https://github.com/ansible-collections/ansible.posix/pull/419). From 5eb019b2c1f38bec7940e29d302cd3eb70605b1a Mon Sep 17 00:00:00 2001 From: Akira Yokochi Date: Sun, 26 Feb 2023 02:47:41 +0000 Subject: [PATCH 4/4] Revert "collection_prep for patch module" This reverts commit d64db13643f0ffee2a5012049922a955ab3bae26. --- docs/ansible.posix.patch_module.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/ansible.posix.patch_module.rst b/docs/ansible.posix.patch_module.rst index 07f672a..60c30cf 100644 --- a/docs/ansible.posix.patch_module.rst +++ b/docs/ansible.posix.patch_module.rst @@ -84,9 +84,9 @@ Parameters -
Setting to true will disable patch's heuristic for transforming CRLF line endings into LF.
+
Setting to yes will disable patch's heuristic for transforming CRLF line endings into LF.
Line endings of src and dest must match.
-
If set to false, patch will replace CRLF in src files on POSIX.
+
If set to no, patch will replace CRLF in src files on POSIX.
@@ -122,7 +122,7 @@ Parameters -
Setting to true will ignore white space changes between patch and input.
+
Setting to yes will ignore white space changes between patch and input..
@@ -141,7 +141,7 @@ Parameters -
If false, it will search for src at originating/controller machine, if true it will go to the remote/target machine for the src.
+
If no, it will search for src at originating/controller machine, if yes it will go to the remote/target machine for the src.
@@ -157,7 +157,7 @@ Parameters -
Path of the patch file as accepted by the GNU patch tool. If remote_src is false, the patch source file is looked up from the module's files directory.
+
Path of the patch file as accepted by the GNU patch tool. If remote_src is 'no', the patch source file is looked up from the module's files directory.

aliases: patchfile