Set name to type path so that tilde and env vars are expanded
This commit is contained in:
parent
876b91eb3d
commit
cfbe65f8c8
1 changed files with 5 additions and 4 deletions
|
@ -142,9 +142,9 @@ def _run_xattr(module,cmd,check_rc=True):
|
||||||
def main():
|
def main():
|
||||||
module = AnsibleModule(
|
module = AnsibleModule(
|
||||||
argument_spec = dict(
|
argument_spec = dict(
|
||||||
name = dict(required=True, aliases=['path']),
|
name = dict(required=True, aliases=['path'], type='path'),
|
||||||
key = dict(required=False, default=None),
|
key = dict(required=False, default=None, type='str'),
|
||||||
value = dict(required=False, default=None),
|
value = dict(required=False, default=None, type='str'),
|
||||||
state = dict(required=False, default='read', choices=[ 'read', 'present', 'all', 'keys', 'absent' ], type='str'),
|
state = dict(required=False, default='read', choices=[ 'read', 'present', 'all', 'keys', 'absent' ], type='str'),
|
||||||
follow = dict(required=False, type='bool', default=True),
|
follow = dict(required=False, type='bool', default=True),
|
||||||
),
|
),
|
||||||
|
@ -203,4 +203,5 @@ def main():
|
||||||
# import module snippets
|
# import module snippets
|
||||||
from ansible.module_utils.basic import *
|
from ansible.module_utils.basic import *
|
||||||
|
|
||||||
main()
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
|
|
Loading…
Add table
Reference in a new issue