From a0abaf54096047513de80c35469d5887183b96a9 Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati <me@fale.io> Date: Thu, 19 Jan 2017 17:13:09 +0000 Subject: [PATCH] files/patch: improve examples (#20463) --- lib/ansible/modules/files/patch.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/ansible/modules/files/patch.py b/lib/ansible/modules/files/patch.py index e3fbc5e333c..e8004b8c62d 100644 --- a/lib/ansible/modules/files/patch.py +++ b/lib/ansible/modules/files/patch.py @@ -91,15 +91,15 @@ note: EXAMPLES = ''' - name: apply patch to one file - patch: > - src=/tmp/index.html.patch - dest=/var/www/index.html + patch: + src: /tmp/index.html.patch + dest: /var/www/index.html - name: apply patch to multiple files under basedir - patch: > - src=/tmp/customize.patch - basedir=/var/www - strip=1 + patch: + src: /tmp/customize.patch + basedir: /var/www + strip: 1 ''' import os