2016-09-07 20:57:21 +00:00
|
|
|
---
|
|
|
|
- name: Use Default Configuration Files
|
2016-11-22 06:14:16 +00:00
|
|
|
copy: src="{{ www_base }}/app/config/{{ item }}.conf.sample.php" dest="{{ www_base }}/app/config/{{ item }}.conf.php" force=no
|
2016-09-07 20:57:21 +00:00
|
|
|
with_items:
|
|
|
|
- db
|
|
|
|
- influx
|
|
|
|
- cache
|
|
|
|
|
|
|
|
- name: Write current environment to file.
|
2016-09-08 07:41:34 +00:00
|
|
|
copy: content="{{ app_env }}" dest="{{ www_base }}/app/.env"
|
2016-09-07 20:57:21 +00:00
|
|
|
|
|
|
|
- name: Touch .deploy_run file
|
2016-09-08 07:41:34 +00:00
|
|
|
file: path="{{ app_base }}/.deploy_run" state=touch
|
2016-09-07 20:57:21 +00:00
|
|
|
|
|
|
|
- name: Create System Folders
|
2017-05-17 22:58:00 +00:00
|
|
|
file: path="{{ item }}" state=directory owner=azuracast group=www-data mode=0774
|
2016-09-07 20:57:21 +00:00
|
|
|
with_items:
|
2017-05-17 22:58:00 +00:00
|
|
|
- "{{ app_base }}"
|
2016-09-08 07:41:34 +00:00
|
|
|
- "{{ tmp_base }}"
|
|
|
|
- "{{ tmp_base }}/cache"
|
|
|
|
- "{{ tmp_base }}/sessions"
|
|
|
|
- "{{ tmp_base }}/proxies"
|
2016-11-22 05:09:18 +00:00
|
|
|
- "{{ app_base }}/stations"
|
2017-05-17 04:11:45 +00:00
|
|
|
- "{{ app_base }}/servers"
|
|
|
|
- "{{ app_base }}/servers/shoutcast2"
|
2017-05-17 22:24:29 +00:00
|
|
|
- "{{ app_base }}/servers/icecast2"
|
|
|
|
- "{{ app_base }}/.opam"
|