diff --git a/lib/ansible/modules/files/blockinfile.py b/lib/ansible/modules/files/blockinfile.py index 1b5f1dab296..88a7733ee0d 100644 --- a/lib/ansible/modules/files/blockinfile.py +++ b/lib/ansible/modules/files/blockinfile.py @@ -129,7 +129,7 @@ EXAMPLES = r''' path: /var/www/html/index.html marker: "" insertafter: "" - content: | + block: |

Welcome to {{ ansible_hostname }}

Last updated on {{ ansible_date_time.iso8601 }}

@@ -137,7 +137,7 @@ EXAMPLES = r''' blockinfile: path: /var/www/html/index.html marker: "" - content: "" + block: "" - name: Add mappings to /etc/hosts blockinfile: