From 83f42ecfd4784f4555055da4e4b5bd2bbcb04d1b Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Wed, 12 Oct 2016 16:25:34 -0400 Subject: [PATCH] Change examples syntax on ini_file module --- files/ini_file.py | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/files/ini_file.py b/files/ini_file.py index 4be87f63ab2..69f092a1630 100644 --- a/files/ini_file.py +++ b/files/ini_file.py @@ -95,13 +95,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