mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 11:21:25 -07:00
Fix Ansible documentation in part of example formatting (#334)
This commit is contained in:
parent
58ed77e851
commit
983d937b7b
58 changed files with 376 additions and 353 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue