mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Update fl.yml
This commit is contained in:
parent
58cea6f422
commit
f294ef199d
1 changed files with 25 additions and 25 deletions
|
@ -1,26 +1,28 @@
|
||||||
# fl.yml signifies "file layout"
|
# fl.yml signifies "file layout"
|
||||||
|
|
||||||
- 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
|
- 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:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
owner: root
|
# owner: root
|
||||||
group: root
|
# group: root
|
||||||
mode: 0755
|
# mode: '0755'
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /etc/sysconfig/olpc-scripts/setup.d/installed/
|
- /etc/sysconfig/olpc-scripts/setup.d/installed/
|
||||||
- "{{ yum_packages_dir }}"
|
- "{{ py3_dist_path }}/iiab" # /usr/lib/python3/dist-packages
|
||||||
- "{{ pip_packages_dir }}"
|
- "{{ yum_packages_dir }}" # /opt/iiab/yum-packages
|
||||||
- "{{ downloads_dir }}"
|
- "{{ pip_packages_dir }}" # /opt/iiab/pip-packages
|
||||||
- /library/downloads/zims
|
#- "{{ downloads_dir }}" # /library/downloads auto-created just below
|
||||||
- /library/downloads/rachel
|
- "{{ downloads_dir }}/zims"
|
||||||
- /library/downloads/maps
|
- "{{ downloads_dir }}/maps"
|
||||||
- /library/working/zims
|
#- "{{ downloads_dir }}/rachel"
|
||||||
- /library/working/rachel
|
#- "{{ content_base }}/working" # /library/working auto-created just below
|
||||||
- /library/working/maps
|
- "{{ content_base }}/working/zims"
|
||||||
- "{{ iiab_zim_path }}/content"
|
- "{{ content_base }}/working/maps"
|
||||||
|
#- "{{ content_base }}/library/working/rachel"
|
||||||
|
- "{{ iiab_zim_path }}/content" # /library/zims
|
||||||
- "{{ iiab_zim_path }}/index"
|
- "{{ iiab_zim_path }}/index"
|
||||||
- "{{ doc_root }}/local_content"
|
- "{{ doc_root }}/local_content" # /library/www/html
|
||||||
- "{{ doc_root }}/modules"
|
- "{{ doc_root }}/modules"
|
||||||
- "{{ doc_root }}/common/css"
|
- "{{ doc_root }}/common/css"
|
||||||
- "{{ doc_root }}/common/js"
|
- "{{ doc_root }}/common/js"
|
||||||
|
@ -29,22 +31,20 @@
|
||||||
- "{{ doc_root }}/common/images"
|
- "{{ doc_root }}/common/images"
|
||||||
- "{{ doc_root }}/common/assets"
|
- "{{ doc_root }}/common/assets"
|
||||||
- "{{ doc_root }}/common/services"
|
- "{{ doc_root }}/common/services"
|
||||||
- "{{ py3_dist_path }}/iiab"
|
|
||||||
|
|
||||||
- name: Symlink from {{ doc_root }}/common/webfonts to {{ doc_root }}/common/fonts
|
- name: File Layout - Symlink {{ doc_root }}/common/webfonts -> {{ doc_root }}/common/fonts
|
||||||
file:
|
file:
|
||||||
src: "{{ doc_root }}/common/fonts"
|
src: "{{ doc_root }}/common/fonts" # /library/www/html
|
||||||
path: "{{ doc_root }}/common/webfonts"
|
path: "{{ doc_root }}/common/webfonts"
|
||||||
state: link
|
state: link
|
||||||
|
|
||||||
- name: Create log files which apache and nginx can write
|
- name: File Layout - Create log file directories {{ apache_log_dir }} & {{ nginx_log_dir }}
|
||||||
file:
|
file:
|
||||||
path: "{{ item }}"
|
path: "{{ item }}"
|
||||||
owner: www-data
|
owner: "{{ apache_user }}" # www-data
|
||||||
group: www-data
|
group: "{{ apache_user }}" # www-data
|
||||||
mode: 0770
|
mode: '0770'
|
||||||
state: directory
|
state: directory
|
||||||
with_items:
|
with_items:
|
||||||
- /var/log/apache2
|
- "{{ apache_log_dir }}" # /var/log/apache2 typically, as set in /opt/iiab/iiab/vars/<OS>.yml
|
||||||
- "{{ nginx_log_dir }}"
|
- "{{ nginx_log_dir }}" # /var/log/nginx
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue