diff --git a/lib/ansible/modules/files/lineinfile.py b/lib/ansible/modules/files/lineinfile.py index 1da7c500fb..5904c25506 100644 --- a/lib/ansible/modules/files/lineinfile.py +++ b/lib/ansible/modules/files/lineinfile.py @@ -131,6 +131,7 @@ EXAMPLES = r""" state: absent regexp: '^%wheel' +# Searches for a line that begins with 127.0.0.1 and replaces it with the value of the 'line' parameter - lineinfile: path: /etc/hosts regexp: '^127\.0\.0\.1'