1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

Move 19 roles into roles/0-DEPRECATED-ROLES

This commit is contained in:
root 2020-01-24 02:27:21 -05:00
parent 0e39c42bbd
commit 2218d2334b
124 changed files with 5 additions and 1 deletions

View file

@ -0,0 +1,22 @@
=============
RACHEL README
=============
This is the second pass at adding RACHEL (http://www.rachel.worldpossible.org/) to IIAB.
It takes RACHEL in its entirety and the download must be copied manually.
This version is based on rachelusb_32EN_3.1.5.zip.
Do the following:
* Uuzip rachelusb_32EN_3.1.5.zip into /library. You should get /library/rachelusb_32EN_3.1.4.
* mkdir /library/rachel
* cd /library/rachel
* mv /library/rachelusb_32EN_3.1.4/RACHEL/bin .
* you should see /library/rachel/bin/www/index.php
* re-run ansible (making sure that rachel_enabled: True has been set in /etc/iiab/local_vars.yml
Locations
---------
- The RACHEL download is expected to be in /library/rachel
- The URL is /rachel

View file

@ -0,0 +1,11 @@
rachel_url: /rachel
rachel_content_path: /library/rachel/www
rachel_mysqldb_path: /library/rachel/bin/database/mysql-5.6.20/data/sphider_plus/
# These two must be in sync, second saves parsing
rachel_src_url: http://rachelfriends.org/downloads/public_ftp/rachelusb_32EN/rachelusb_32EN_3.1.5.zip
rachel_version: rachelusb_32EN_3.1.5
rachel_install: False
rachel_enabled: False
rachel_content_found: False

View file

@ -0,0 +1,48 @@
- name: Create various directories for rachel
file: path={{ item }}
owner=root
group=root
mode=0755
state=directory
with_items:
- /library/rachel
- name: See if rachel content is installed
stat: path="{{ rachel_content_path }}/index.php"
register: rachel_content
- name: Set rachel_content_found to False
set_fact:
rachel_content_found: False
- name: Set rachel_content_found True if found
set_fact:
rachel_content_found: True
when: rachel_content.stat.exists == true
- include_tasks: rachel_enabled.yml
when: rachel_enabled and rachel_content_found
- name: Add 'rachel' variable values to {{ iiab_ini_file }}
ini_file:
path: "{{ iiab_ini_file }}"
section: rachel
option: "{{ item.option }}"
value: "{{ item.value | string }}"
with_items:
- option: name
value: rachel
- option: description
value: '"Educational resources, packaged together for download and distribution in places without internet."'
- option: rachel_content_path
value: "{{ rachel_content_path }}"
- option: rachel_version
value: "{{ rachel_version }}"
- option: rachel_mysqldb_path
value: "{{ rachel_mysqldb_path }}"
- option: rachel_src_url
value: "{{ rachel_src_url }}"
- option: content_found
value: "{{ rachel_content_found }}"
- option: enabled
value: "{{ rachel_enabled }}"

View file

@ -0,0 +1,36 @@
- name: Copy RACHEL httpd conf file
template: src=rachel.conf.j2
dest=/etc/{{ apache_config_dir }}/rachel.conf
- name: enable Rachel
file: path=/etc/apache2/sites-enabled/rachel.conf
src=/etc/apache2/sites-available/rachel.conf
state=link
when: rachel_enabled and is_debuntu
- name: Remove RACHEL conf file if we are disabled
file: path=/etc/apache2/sites-enabled/rachel.conf
state=absent
when: not rachel_enabled and is_debuntu
# This probably doesn't work, but we can't get search to work either
- name: Create link to rachel mysql db from mysql data dir
file: src={{ rachel_mysqldb_path }}
dest=/var/lib/mysql/sphider_plus
owner=root
group=admin
state=link
- name: Set mysql password
lineinfile: regexp=mysql_password1
line="$mysql_password1 = '{{ mysql_root_password }}';"
state=present
dest={{ rachel_content_path }}/rsphider/settings/database.php
- name: Restart mysqld service
service: name={{ mysql_service }}
state=restarted
- name: Restart apache2 service
service: name={{ apache_service }}
state=restarted

View file

@ -0,0 +1,29 @@
<!-- START FOOTER -->
<div style="clear: left;"></div>
</li>
</ul>
</div>
<p/>
<div style="clear: both;"></div>
</div>
<div id="haut">
<ul class="menuhaut" >
<li><a href="{{ rachel_url }}/index.html">HOME</a></li>
<li><a href="{{ rachel_url }}/about.html">ABOUT</a></li>
</ul>
<div id="footer_right">RACHEL - SEP 2013 Version</div>
</div>
<p>&nbsp;</p>
<p>&nbsp;</p>
</body>
</html>

View file

@ -0,0 +1,43 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title> RACHEL - HOME</title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/rachel/style.css">
</head>
<body OnLoad="document.search.query.focus();">
<a id="rachel">Rachel</a>
<div id="haut">
<ul class="menuhaut" >
<li><a href="{{ rachel_url }}/index.html">HOME</a></li>
<li><a href="{{ rachel_url }}/about.html">ABOUT</a></li>
</ul>
<div id="searchdiv">
<form action="/sphider/search.php" method="get" id="searchform" name="search">
<input type="text" name="query" id="query" size="55" value="" action="include/js_suggest/suggest.php" columns="2" autocomplete="off" delay="1500"> <input type="submit" value="Search RACHEL">
<input type="hidden" name="search" value="1">
</form>
</div>
</div>
<div id="content">
<div class="thumblist">
<a name="search"></a>
<h3>Search Results</h3>
<ul>
<li>
<!-- END HEADER -->

View file

@ -0,0 +1,6 @@
Alias /rachel {{ rachel_content_path }}
<Directory {{ rachel_content_path }}>
AllowOverride all
require all granted
</Directory>