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
2020-01-22 12:26:54 -06:00

39 lines
1.6 KiB
YAML

# fl.yml signifies "file layout"
- name: "File Layout - Create directories: 1 in /etc, 1 in {{ py3_dist_path }}, 2 in {{ iiab_base }}, 15 in {{ content_base }}" # iiab_base: /opt/iiab
file:
path: "{{ item }}"
# owner: root
# group: root
# mode: '0755'
state: directory
with_items:
- /etc/sysconfig/olpc-scripts/setup.d/installed/
- "{{ py3_dist_path }}/iiab" # /usr/lib/python3/dist-packages
- "{{ yum_packages_dir }}" # /opt/iiab/yum-packages
- "{{ pip_packages_dir }}" # /opt/iiab/pip-packages
#- "{{ downloads_dir }}" # /library/downloads auto-created just below
- "{{ downloads_dir }}/zims"
- "{{ downloads_dir }}/maps"
#- "{{ downloads_dir }}/rachel"
#- "{{ content_base }}/working" # /library/working auto-created just below
- "{{ content_base }}/working/zims"
- "{{ content_base }}/working/maps"
#- "{{ content_base }}/library/working/rachel"
- "{{ iiab_zim_path }}/content" # /library/zims
- "{{ iiab_zim_path }}/index"
- "{{ doc_root }}/local_content" # /library/www/html
- "{{ 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"
- name: File Layout - Symlink {{ doc_root }}/common/webfonts -> {{ doc_root }}/common/fonts
file:
src: "{{ doc_root }}/common/fonts" # /library/www/html
path: "{{ doc_root }}/common/webfonts"
state: link