mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 20:31:27 -07:00
Native YAML - system (#3625)
* Native YAML - system * Remove comment that is not applicable to the code
This commit is contained in:
parent
737c6afb54
commit
cc25f24475
26 changed files with 514 additions and 135 deletions
|
@ -107,31 +107,55 @@ options:
|
|||
|
||||
EXAMPLES = '''
|
||||
# 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'
|
||||
- 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'
|
||||
|
||||
# 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'
|
||||
- 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'
|
||||
|
||||
# Boot an already installed zone
|
||||
solaris_zone: name=zone1 state=running
|
||||
- solaris_zone:
|
||||
name: zone1
|
||||
state: running
|
||||
|
||||
# Stop a zone
|
||||
solaris_zone: name=zone1 state=stopped
|
||||
- solaris_zone:
|
||||
name: zone1
|
||||
state: stopped
|
||||
|
||||
# Destroy a zone
|
||||
solaris_zone: name=zone1 state=absent
|
||||
- solaris_zone:
|
||||
name: zone1
|
||||
state: absent
|
||||
|
||||
# Detach a zone
|
||||
solaris_zone: name=zone1 state=detached
|
||||
- solaris_zone:
|
||||
name: zone1
|
||||
state: detached
|
||||
|
||||
# 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'
|
||||
- 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'
|
||||
|
||||
# Attach a zone
|
||||
solaris_zone: name=zone1 state=attached attach_options='-u'
|
||||
- solaris_zone:
|
||||
name: zone1
|
||||
state: attached
|
||||
attach_options=: -u
|
||||
'''
|
||||
|
||||
class Zone(object):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue