forked from evolix/ansible-roles
Don't copy empty files
This commit is contained in:
parent
8384e8ba43
commit
5bf82d117b
|
@ -27,15 +27,21 @@
|
||||||
- { path: awstats, mode: "0750", state: directory }
|
- { path: awstats, mode: "0750", state: directory }
|
||||||
- { path: www, mode: "0750", state: directory }
|
- { path: www, mode: "0750", state: directory }
|
||||||
|
|
||||||
- name: Copy apache empty log files if missing
|
- name: Apache log file (templates) are present
|
||||||
copy:
|
command: "touch /etc/skel/log/{{ item }}"
|
||||||
src: "log/{{ item }}"
|
args:
|
||||||
|
creates: "/etc/skel/log/{{ item }}"
|
||||||
|
with_items:
|
||||||
|
- access.log
|
||||||
|
- error.log
|
||||||
|
|
||||||
|
- name: Apache log file (templates) have the proper permissions
|
||||||
|
file:
|
||||||
dest: "/etc/skel/log/{{ item }}"
|
dest: "/etc/skel/log/{{ item }}"
|
||||||
mode: "0644"
|
mode: "0644"
|
||||||
force: no
|
|
||||||
with_items:
|
with_items:
|
||||||
- access.log
|
- access.log
|
||||||
- error.log
|
- error.log
|
||||||
|
|
||||||
- name: "Install userlogrotate (jessie)"
|
- name: "Install userlogrotate (jessie)"
|
||||||
copy:
|
copy:
|
||||||
|
|
Loading…
Reference in a new issue