New in version 2.4.
Parameter |
Choices/Defaults |
Configuration |
Comments |
---|---|---|---|
_terms
required |
|
|
path(s) of files to read
|
- name: Create directories
file:
path: /web/{{ item.path }}
state: directory
mode: '{{ item.mode }}'
with_filetree: web/
when: item.state == 'directory'
- name: Template files
template:
src: '{{ item.src }}'
dest: /web/{{ item.path }}
mode: '{{ item.mode }}'
with_filetree: web/
when: item.state == 'file'
- name: Recreate symlinks
file:
src: '{{ item.src }}'
dest: /web/{{ item.path }}
state: link
force: yes
mode: '{{ item.mode }}'
with_filetree: web/
when: item.state == 'link'
Common return values are documented here, the following are the fields unique to this lookup:
Key |
Returned |
Description |
---|---|---|
_raw
|
list of dictionaries with file information
|
|
uid
|
TODO
|
|
selevel
|
TODO
|
|
mtime
|
TODO
|
|
owner
|
TODO
|
|
path
|
contains the relative path to root
|
|
size
|
TODO
|
|
src
|
TODO
|
|
group
|
TODO
|
|
ctime
|
TODO
|
|
seuser
|
TODO
|
|
state
|
TODO
|
|
serole
|
TODO
|
|
gid
|
TODO
|
|
mode
|
TODO
|
|
root
|
allows filtering by original location
|
|
setype
|
TODO
|
Hint
If you notice any issues in this documentation you can edit this document to improve it.