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

SQLite comes with Python so no database setup required

This commit is contained in:
Aidan Fitzgerald 2018-07-23 22:57:12 -04:00 committed by Aidan Fitzgerald
parent 5cb9dfe5b7
commit 88752e419a
2 changed files with 0 additions and 41 deletions

View file

@ -8,12 +8,6 @@ lokole_venv: "{{ lokole_install_path }}/venv"
lokole_user: lokole
lokole_run_directory: /home/{{ lokole_user }}/state
# Everything below this line is unused
lokole_db_name: iiab_lokole
lokole_db_user: iiab_lokole_user
lokole_db_user_password: changeme
lokole_install: True
lokole_enabled: True

View file

@ -37,41 +37,6 @@
# Everything below this line is unused
- name: MySQL database needs to be running if we are trying to create a new db
service:
state: started
name: "{{ mysql_service }}"
- name: Create MySQL lokole database
mysql_db:
name: "{{ lokole_db_name }}"
state: present
- name: Create MySQL lokole database user
mysql_user:
name: "{{ lokole_db_user }}"
password: "{{ lokole_db_user_password }}"
priv: "{{ lokole_db_name }}.*:ALL,GRANT"
state: present
- name: Configure Lokole
shell: >
php '{{ lokole_abs_path }}/maintenance/install.php'
--dbname={{ lokole_db_name }}
--dbserver="localhost"
--installdbuser={{ lokole_db_user }}
--installdbpass={{ lokole_db_user_password }}
--dbuser={{ lokole_db_user }}
--dbpass={{ lokole_db_user_password }}
--scriptpath=/lokole
--lang=en
--pass={{ lokole_admin_user_password }}
"{{ lokole_site_name }}"
"{{ lokole_admin_user }}"
args:
chdir: "{{ lokole_abs_path }}"
creates: "{{ lokole_abs_path }}/LocalSettings.php"
- name: Copy lokole httpd conf file
template:
src: lokole.conf.j2