@ -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'"
description: "Example playbook using fail and only_if together"
@ -102,7 +102,11 @@ options:
description:
- When used with I(state=absent), behavior is as with
I(userdel --remove).
- 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