mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user