From a080d44a47ef0d643e02597517d2cf90a40a9c7c Mon Sep 17 00:00:00 2001 From: Fabio Alessandro Locati Date: Mon, 19 Dec 2016 17:49:47 +0100 Subject: [PATCH] Improve YAML examples - system/solaris_zone.py (#19410) --- lib/ansible/modules/system/solaris_zone.py | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/lib/ansible/modules/system/solaris_zone.py b/lib/ansible/modules/system/solaris_zone.py index 85e0f41a1ca..ae72309e19f 100644 --- a/lib/ansible/modules/system/solaris_zone.py +++ b/lib/ansible/modules/system/solaris_zone.py @@ -107,56 +107,56 @@ options: ''' EXAMPLES = ''' -# Create and install a zone, but don't boot it -- solaris_zone: +- name: Create and install a zone, but don't boot it + solaris_zone: name: zone1 state: present path: /zones/zone1 - sparse: true + 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: 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' -# Boot an already installed zone -- solaris_zone: +- name: Boot an already installed zone + solaris_zone: name: zone1 state: running -# Stop a zone -- solaris_zone: +- name: Stop a zone + solaris_zone: name: zone1 state: stopped -# Destroy a zone -- solaris_zone: +- name: Destroy a zone + solaris_zone: name: zone1 state: absent -# Detach a zone -- solaris_zone: +- name: Detach a zone + solaris_zone: name: zone1 state: detached -# Configure a zone, ready to be attached -- solaris_zone: +- 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' -# Attach a zone -- solaris_zone: +- name: Attach zone1 + solaris_zone: name: zone1 state: attached - attach_options=: -u + attach_options: -u ''' class Zone(object):