mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 12:50:22 -07:00
modules: fix examples to use FQCN (#644)
* modules: fix examples to use FQCN * fix * fix * fix
This commit is contained in:
parent
8b92e0454d
commit
41cfdda6a3
533 changed files with 2130 additions and 2130 deletions
|
@ -39,39 +39,39 @@ author:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Create a new file system called myfs in pool rpool with the setuid property turned off
|
||||
zfs:
|
||||
community.general.zfs:
|
||||
name: rpool/myfs
|
||||
state: present
|
||||
extra_zfs_properties:
|
||||
setuid: off
|
||||
|
||||
- name: Create a new volume called myvol in pool rpool.
|
||||
zfs:
|
||||
community.general.zfs:
|
||||
name: rpool/myvol
|
||||
state: present
|
||||
extra_zfs_properties:
|
||||
volsize: 10M
|
||||
|
||||
- name: Create a snapshot of rpool/myfs file system.
|
||||
zfs:
|
||||
community.general.zfs:
|
||||
name: rpool/myfs@mysnapshot
|
||||
state: present
|
||||
|
||||
- name: Create a new file system called myfs2 with snapdir enabled
|
||||
zfs:
|
||||
community.general.zfs:
|
||||
name: rpool/myfs2
|
||||
state: present
|
||||
extra_zfs_properties:
|
||||
snapdir: enabled
|
||||
|
||||
- name: Create a new file system by cloning a snapshot
|
||||
zfs:
|
||||
community.general.zfs:
|
||||
name: rpool/cloned_fs
|
||||
state: present
|
||||
origin: rpool/myfs@mysnapshot
|
||||
|
||||
- name: Destroy a filesystem
|
||||
zfs:
|
||||
community.general.zfs:
|
||||
name: rpool/myfs
|
||||
state: absent
|
||||
'''
|
||||
|
|
|
@ -70,27 +70,27 @@ author:
|
|||
|
||||
EXAMPLES = r'''
|
||||
- name: Grant `zfs allow` and `unallow` permission to the `adm` user with the default local+descendents scope
|
||||
zfs_delegate_admin:
|
||||
community.general.zfs_delegate_admin:
|
||||
name: rpool/myfs
|
||||
users: adm
|
||||
permissions: allow,unallow
|
||||
|
||||
- name: Grant `zfs send` to everyone, plus the group `backup`
|
||||
zfs_delegate_admin:
|
||||
community.general.zfs_delegate_admin:
|
||||
name: rpool/myvol
|
||||
groups: backup
|
||||
everyone: yes
|
||||
permissions: send
|
||||
|
||||
- name: Grant `zfs send,receive` to users `foo` and `bar` with local scope only
|
||||
zfs_delegate_admin:
|
||||
community.general.zfs_delegate_admin:
|
||||
name: rpool/myfs
|
||||
users: foo,bar
|
||||
permissions: send,receive
|
||||
local: yes
|
||||
|
||||
- name: Revoke all permissions from everyone (permissions specifically assigned to users and groups remain)
|
||||
zfs_delegate_admin:
|
||||
community.general.zfs_delegate_admin:
|
||||
name: rpool/myfs
|
||||
everyone: yes
|
||||
state: absent
|
||||
|
|
|
@ -52,11 +52,11 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Gather facts about ZFS dataset rpool/export/home
|
||||
zfs_facts:
|
||||
community.general.zfs_facts:
|
||||
dataset: rpool/export/home
|
||||
|
||||
- name: Report space usage on ZFS filesystems under data/home
|
||||
zfs_facts:
|
||||
community.general.zfs_facts:
|
||||
name: data/home
|
||||
recurse: yes
|
||||
type: filesystem
|
||||
|
|
|
@ -39,10 +39,10 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
- name: Gather facts about ZFS pool rpool
|
||||
zpool_facts: pool=rpool
|
||||
community.general.zpool_facts: pool=rpool
|
||||
|
||||
- name: Gather space usage about all imported ZFS pools
|
||||
zpool_facts: properties='free,size'
|
||||
community.general.zpool_facts: properties='free,size'
|
||||
|
||||
- name: Print gathered information
|
||||
debug:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue