Merge branch 'master' of ssh://git-ssh.notandy.de:2222/ansible/roles/files_

This commit is contained in:
nd 2021-07-11 12:01:02 +02:00
commit 4d3cef286e
No known key found for this signature in database
GPG key ID: 21B5CD4DEE3670E9
2 changed files with 7 additions and 1 deletions

View file

@ -4,6 +4,7 @@
owner: root
mode: "0700"
state: touch
src: ~
content: ~
template: ~
template_vars: {}
@ -22,11 +23,13 @@
group: "{{ file.group }}"
owner: "{{ file.owner }}"
mode: "{{ file.mode }}"
src: "{{ file.src }}"
state: "{{ file.state }}"
- name: create file/folder (copy content)
when:
- file.content
- not file.src
copy:
dest: "{{ file.path }}"
group: "{{ file.group }}"