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:
parent
ba76df1af1
commit
1923666b22
1 changed files with 13 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue