mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 13:22:48 +00:00
Change example syntax on xattr module
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user