1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/rachel/tasks/rachel_enabled.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

2017-05-27 18:09:50 +00:00
- 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
2017-05-27 23:10:45 +00:00
when: rachel_enabled and is_debuntu
2017-05-27 18:09:50 +00:00
- name: Remove RACHEL conf file if we are disabled
file: path=/etc/apache2/sites-enabled/rachel.conf
state=absent
2017-05-27 23:10:45 +00:00
when: not rachel_enabled and is_debuntu
2017-05-27 18:09:50 +00:00
# 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