summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Doran <sdoran@ansible.com>2016-10-12 17:45:22 -0400
committerSam Doran <sdoran@ansible.com>2016-11-15 14:23:35 -0500
commitb5f09cb9b00661fbe73748298e2ac7e7c65e1a04 (patch)
treee158ed37d72626139434ffd20269a38533daa991
parentc2db9fa4148b6ba62ec7bc6b991b28946ea173a5 (diff)
downloadansible-modules-core-b5f09cb9b00661fbe73748298e2ac7e7c65e1a04.tar.gz
Change example syntax on xattr module
-rw-r--r--files/xattr.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/files/xattr.py b/files/xattr.py
index 8f12c853..02af9f97 100644
--- a/files/xattr.py
+++ b/files/xattr.py
@@ -63,13 +63,20 @@ author: "Brian Coca (@bcoca)"
EXAMPLES = '''
# Obtain the extended attributes of /etc/foo.conf
-- xattr: name=/etc/foo.conf
+- xattr:
+ name: /etc/foo.conf
# Sets the key 'foo' to value 'bar'
-- xattr: path=/etc/foo.conf key=user.foo value=bar
+- xattr:
+ path: /etc/foo.conf
+ key: user.foo
+ value: bar
# Removes the key 'foo'
-- xattr: name=/etc/foo.conf key=user.foo state=absent
+- xattr:
+ name: /etc/foo.conf
+ key: user.foo
+ state: absent
'''
import operator