From 804d574d1f9430d396385c7cb71c92156834ea8b Mon Sep 17 00:00:00 2001 From: Michael Scherer <mscherer@users.noreply.github.com> Date: Tue, 11 Sep 2018 17:38:39 +0200 Subject: [PATCH] Add documentation for the modify command, by giving a example (#19699) --- lib/ansible/modules/cloud/misc/virt_net.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/ansible/modules/cloud/misc/virt_net.py b/lib/ansible/modules/cloud/misc/virt_net.py index a09528223be..1353f5d2a9f 100644 --- a/lib/ansible/modules/cloud/misc/virt_net.py +++ b/lib/ansible/modules/cloud/misc/virt_net.py @@ -129,6 +129,11 @@ EXAMPLES = ''' - virt_net: autostart: no name: br_nat + +# Add a new host in the dhcp pool +- virt_net: + name: br_nat + xml: "<host mac='FC:C2:33:00:6c:3c' name='my_vm' ip='192.168.122.30'/>" ''' try: