Native YAML + add comments (#3582)

pull/18777/head
Fabio Alessandro Locati 8 years ago committed by Matt Clay
parent c40bb574c6
commit b6cf2e422d

@ -48,8 +48,16 @@ notes:
- Requires the LogEntries agent which can be installed following the instructions at logentries.com - Requires the LogEntries agent which can be installed following the instructions at logentries.com
''' '''
EXAMPLES = ''' EXAMPLES = '''
- logentries: path=/var/log/nginx/access.log state=present name=nginx-access-log # Track nginx logs
- logentries: path=/var/log/nginx/error.log state=absent - logentries:
path: /var/log/nginx/access.log
state: present
name: nginx-access-log
# Stop tracking nginx logs
- logentries:
path: /var/log/nginx/error.log
state: absent
''' '''
def query_log_status(module, le_path, path, state="present"): def query_log_status(module, le_path, path, state="present"):

Loading…
Cancel
Save