1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/2-common/tasks/fl.yml

51 lines
1.5 KiB
YAML
Raw Normal View History

2019-01-15 20:33:51 +00:00
# fl.yml signifies "file layout"
2019-11-21 17:38:36 +00:00
- name: Create directories with ownership root:root and permissions 0755 (1 in /etc, 1 in {{ py3_dist_path }}, 3 in {{ iiab_base }} and 15 in /library) # py3_dist_path is /usr/lib/python3/dist-packages, iiab_base is /opt/iiab
file:
path: "{{ item }}"
owner: root
group: root
mode: 0755
state: directory
2017-11-09 10:51:07 +00:00
with_items:
2018-11-02 22:17:44 +00:00
- /etc/sysconfig/olpc-scripts/setup.d/installed/
2017-11-09 10:51:07 +00:00
- "{{ yum_packages_dir }}"
- "{{ pip_packages_dir }}"
- "{{ downloads_dir }}"
- /library/downloads/zims
- /library/downloads/rachel
2019-05-09 19:09:40 +00:00
- /library/downloads/maps
2017-11-09 10:51:07 +00:00
- /library/working/zims
- /library/working/rachel
2019-05-09 19:09:40 +00:00
- /library/working/maps
2017-11-09 10:51:07 +00:00
- "{{ iiab_zim_path }}/content"
- "{{ iiab_zim_path }}/index"
2017-11-13 02:16:28 +00:00
- "{{ doc_root }}/local_content"
2017-11-09 10:51:07 +00:00
- "{{ doc_root }}/modules"
- "{{ doc_root }}/common/css"
- "{{ doc_root }}/common/js"
- "{{ doc_root }}/common/fonts"
- "{{ doc_root }}/common/html"
- "{{ doc_root }}/common/images"
- "{{ doc_root }}/common/assets"
- "{{ doc_root }}/common/services"
2019-11-19 13:34:38 +00:00
- "{{ py3_dist_path }}/iiab"
2018-10-17 17:35:30 +00:00
2018-11-02 22:17:44 +00:00
- name: Symlink from {{ doc_root }}/common/webfonts to {{ doc_root }}/common/fonts
2018-10-17 17:35:30 +00:00
file:
src: "{{ doc_root }}/common/fonts"
path: "{{ doc_root }}/common/webfonts"
state: link
2020-01-09 18:08:05 +00:00
- name: Create log files which apache and nginx can write
file:
path: "{{ item }}"
owner: www-data
group: www-data
mode: 0660
state: directory
with_items:
- /var/log/apache2
- "{{ nginx_log_dir }}"