Skip to content
Snippets Groups Projects
Verified Commit 9641e5a2 authored by nd's avatar nd
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
files: {}
- set_fact:
defaultfile:
group: root
owner: root
mode: "0700"
state: present
content: ~
template: ~
template_vars: {}
- set_fact:
file: "{{ defaultfile|combine(item.value|d({}), {'path': item.key} ) }}"
- name: create file/folder
when:
- not file.content
- not file.template
file:
path: "{{ file.path }}"
group: "{{ file.group }}"
owner: "{{ file.owner }}"
mode: "{{ file.mode }}"
state: "{{ file.state }}"
- name: handle files
with_dict: "{{ files }}"
include_tasks:
file: file.yml
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment