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:
parent
3d91af9c53
commit
b5f14f6f07
2 changed files with 0 additions and 41 deletions
|
@ -8,12 +8,6 @@ lokole_venv: "{{ lokole_install_path }}/venv"
|
||||||
lokole_user: lokole
|
lokole_user: lokole
|
||||||
lokole_run_directory: /home/{{ lokole_user }}/state
|
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_install: True
|
||||||
lokole_enabled: True
|
lokole_enabled: True
|
||||||
|
|
||||||
|
|
|
@ -37,41 +37,6 @@
|
||||||
|
|
||||||
# Everything below this line is unused
|
# 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
|
- name: Copy lokole httpd conf file
|
||||||
template:
|
template:
|
||||||
src: lokole.conf.j2
|
src: lokole.conf.j2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue