mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Native YAML + add comments (#3582)
This commit is contained in:
parent
c40bb574c6
commit
b6cf2e422d
1 changed files with 10 additions and 2 deletions
|
@ -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…
Reference in a new issue