Note
This plugin is part of the community.general collection.
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.beadm
.
Parameter | Choices/Defaults | Comments |
---|---|---|
description string | Associate a description with a new boot environment. This option is available only on Solarish platforms. | |
force boolean |
| Specifies if the unmount should be forced. |
mountpoint path | Path where to mount the ZFS boot environment. | |
name string / required | ZFS boot environment name. aliases: be | |
options string | Create the datasets for new BE with specific ZFS properties. Multiple options can be specified. This option is available only on Solarish platforms. | |
snapshot string | If specified, the new boot environment will be cloned from the given snapshot or inactive boot environment. | |
state string |
| Create or delete ZFS boot environment. |
- name: Create ZFS boot environment community.general.beadm: name: upgrade-be state: present - name: Create ZFS boot environment from existing inactive boot environment community.general.beadm: name: upgrade-be snapshot: be@old state: present - name: Create ZFS boot environment with compression enabled and description "upgrade" community.general.beadm: name: upgrade-be options: "compression=on" description: upgrade state: present - name: Delete ZFS boot environment community.general.beadm: name: old-be state: absent - name: Mount ZFS boot environment on /tmp/be community.general.beadm: name: BE mountpoint: /tmp/be state: mounted - name: Unmount ZFS boot environment community.general.beadm: name: BE state: unmounted - name: Activate ZFS boot environment community.general.beadm: name: upgrade-be state: activated
Common return values are documented here, the following are the fields unique to this module:
Key | Returned | Description |
---|---|---|
description string | always | BE description Sample: Upgrade from 9.0 to 10.0 |
force boolean | always | If forced action is wanted |
mountpoint string | always | BE mountpoint Sample: /mnt/be |
name string | always | BE name Sample: pre-upgrade |
options string | always | BE additional options Sample: compression=on |
snapshot string | always | ZFS snapshot to create BE from Sample: rpool/ROOT/oi-hipster@fresh |
state string | always | state of the target Sample: present |
© 2012–2018 Michael DeHaan
© 2018–2019 Red Hat, Inc.
Licensed under the GNU General Public License version 3.
https://docs.ansible.com/ansible/2.10/collections/community/general/beadm_module.html