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
commit 1923666b22

View file

@ -96,13 +96,20 @@ author:
EXAMPLES = ''' EXAMPLES = '''
# Ensure "fav=lemonade is in section "[drinks]" in specified file # 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 - ini_file:
section=drinks dest: /etc/anotherconf
option=temperature section: drinks
value=cold option: temperature
backup=yes value: cold
backup: yes
''' '''
import os import os