community.general.solaris_zone – Manage Solaris zones¶
Note
This plugin is part of the community.general collection (version 1.3.6).
To install it use: ansible-galaxy collection install community.general
.
To use it in a playbook, specify: community.general.solaris_zone
.
Synopsis¶
Create, start, stop and delete Solaris zones.
This module does not currently allow changing of options for a zone that is already been created.
Requirements¶
The below requirements are needed on the host that executes this module.
Solaris 10 or 11
Parameters¶
Examples¶
- name: Create and install a zone, but don't boot it
community.general.solaris_zone:
name: zone1
state: present
path: /zones/zone1
sparse: True
root_password: Be9oX7OSwWoU.
config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end'
- name: Create and install a zone and boot it
community.general.solaris_zone:
name: zone1
state: running
path: /zones/zone1
root_password: Be9oX7OSwWoU.
config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end'
- name: Boot an already installed zone
community.general.solaris_zone:
name: zone1
state: running
- name: Stop a zone
community.general.solaris_zone:
name: zone1
state: stopped
- name: Destroy a zone
community.general.solaris_zone:
name: zone1
state: absent
- name: Detach a zone
community.general.solaris_zone:
name: zone1
state: detached
- name: Configure a zone, ready to be attached
community.general.solaris_zone:
name: zone1
state: configured
path: /zones/zone1
root_password: Be9oX7OSwWoU.
config: 'set autoboot=true; add net; set physical=bge0; set address=10.1.1.1; end'
- name: Attach zone1
community.general.solaris_zone:
name: zone1
state: attached
attach_options: -u
Authors¶
Paul Markham (@pmarkham)