From 1c3a117f8333e7ab405bc734930a62eaeaa4fada Mon Sep 17 00:00:00 2001 From: Arie Bregman Date: Wed, 30 May 2018 02:02:48 +0200 Subject: [PATCH] doc: add name to tasks in ini_file module examples (#38888) One of Ansible best practices is "Always Name Tasks". This should include tasks in examples as well so people can learn what is the right way to use it. --- lib/ansible/modules/files/ini_file.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/ansible/modules/files/ini_file.py b/lib/ansible/modules/files/ini_file.py index 5e41dd3db4..cf12896b1b 100644 --- a/lib/ansible/modules/files/ini_file.py +++ b/lib/ansible/modules/files/ini_file.py @@ -103,7 +103,8 @@ EXAMPLES = ''' mode: 0600 backup: yes -- ini_file: +- name: Ensure "temperature=cold is in section "[drinks]" in specified file + ini_file: path: /etc/anotherconf section: drinks option: temperature