mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 15:11:23 -07:00
Change example syntax on xattr module
This commit is contained in:
parent
c5921612d1
commit
385d34a3d7
1 changed files with 10 additions and 3 deletions
|
@ -63,13 +63,20 @@ author: "Brian Coca (@bcoca)"
|
||||||
|
|
||||||
EXAMPLES = '''
|
EXAMPLES = '''
|
||||||
# Obtain the extended attributes of /etc/foo.conf
|
# 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'
|
# 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'
|
# 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
|
import operator
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue