solaris_zone – Manage Solaris zones¶
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
  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
  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
  solaris_zone:
    name: zone1
    state: running
- name: Stop a zone
  solaris_zone:
    name: zone1
    state: stopped
- name: Destroy a zone
  solaris_zone:
    name: zone1
    state: absent
- name: Detach a zone
  solaris_zone:
    name: zone1
    state: detached
- name: Configure a zone, ready to be attached
  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
  solaris_zone:
    name: zone1
    state: attached
    attach_options: -u
Status¶
- This module is not guaranteed to have a backwards compatible interface. [preview]
- This module is maintained by the Ansible Community. [community]
Authors¶
- Paul Markham (@pmarkham)
Hint
If you notice any issues in this documentation, you can edit this document to improve it.
