1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Change examples syntax on ini_file module

This commit is contained in:
Sam Doran 2016-10-12 16:25:34 -04:00 committed by Matt Clay
parent ba76df1af1
commit 1923666b22

View file

@ -96,13 +96,20 @@ author:
EXAMPLES = '''
# Ensure "fav=lemonade is in section "[drinks]" in specified file
- ini_file: dest=/etc/conf section=drinks option=fav value=lemonade mode=0600 backup=yes
- ini_file:
dest: /etc/conf
section: drinks
option: fav
value: lemonade
mode: 0600
backup: yes
- ini_file: dest=/etc/anotherconf
section=drinks
option=temperature
value=cold
backup=yes
- ini_file:
dest: /etc/anotherconf
section: drinks
option: temperature
value: cold
backup: yes
'''
import os