Fix Ansible documentation in part of example formatting (#334)

This commit is contained in:
Andrew Klychkov 2020-05-15 13:12:41 +03:00 committed by GitHub
parent 58ed77e851
commit 983d937b7b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
58 changed files with 376 additions and 353 deletions

View file

@ -46,40 +46,40 @@ author: "Trey Perry (@treyperry)"
'''
EXAMPLES = """
# Creating or updating a znode with a given value
- znode:
- name: Creating or updating a znode with a given value
znode:
hosts: 'localhost:2181'
name: /mypath
value: myvalue
state: present
# Getting the value and stat structure for a znode
- znode:
- name: Getting the value and stat structure for a znode
znode:
hosts: 'localhost:2181'
name: /mypath
op: get
# Listing a particular znode's children
- znode:
- name: Listing a particular znode's children
znode:
hosts: 'localhost:2181'
name: /zookeeper
op: list
# Waiting 20 seconds for a znode to appear at path /mypath
- znode:
- name: Waiting 20 seconds for a znode to appear at path /mypath
znode:
hosts: 'localhost:2181'
name: /mypath
op: wait
timeout: 20
# Deleting a znode at path /mypath
- znode:
- name: Deleting a znode at path /mypath
znode:
hosts: 'localhost:2181'
name: /mypath
state: absent
# Creating or updating a znode with a given value on a remote Zookeeper
- znode:
- name: Creating or updating a znode with a given value on a remote Zookeeper
znode:
hosts: 'my-zookeeper-node:2181'
name: /mypath
value: myvalue