From 4f17aa9fa0b37d457988164c708f1fa74fa844a6 Mon Sep 17 00:00:00 2001 From: Luke Antins Date: Thu, 18 Oct 2012 02:09:11 +0100 Subject: [PATCH 1/2] Fix indent of fail module example to prevent unwanted `


` from showing up in docsite output. --- library/fail | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/fail b/library/fail index ec80be3abd0..389cadd8654 100644 --- a/library/fail +++ b/library/fail @@ -42,7 +42,7 @@ options: examples: - code: | action: fail msg="The system may not be provisioned according to the CMDB status." rc=100 - only_if: "'$cmdb_status' != 'to-be-staged'" + only_if: "'$cmdb_status' != 'to-be-staged'" description: "Example playbook using fail and only_if together" From 0dbd3aa821efab5f796a2a254ec2870c752aa1e3 Mon Sep 17 00:00:00 2001 From: Luke Antins Date: Thu, 18 Oct 2012 02:55:58 +0100 Subject: [PATCH 2/2] Add examples to user module documentation. --- library/user | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/user b/library/user index 42ffc310c22..ab642ac6597 100755 --- a/library/user +++ b/library/user @@ -102,7 +102,11 @@ options: description: - When used with I(state=absent), behavior is as with I(userdel --remove). - +examples: + - code: user name=johnd comment="John Doe" uid=1040 + description: "Add the user 'johnd' with a specific uid and a primary group of 'admin'" + - code: user name=johnd state=absent remove=yes + description: "Remove the user 'johnd'" ''' import os