mirror of
https://github.com/iiab/iiab.git
synced 2025-03-09 15:40:17 +00:00
Elgg's Ansible output enhanced
This commit is contained in:
parent
2410f7eeba
commit
e3bf302ccd
1 changed files with 9 additions and 9 deletions
|
@ -1,7 +1,7 @@
|
|||
# Assume we only get here if elgg_install: True
|
||||
# Assume mysql is running
|
||||
|
||||
- name: Download current version from our copy
|
||||
- name: Download current version from our site
|
||||
shell: wget {{ iiab_download_url }}/elgg-{{ elgg_version }}.zip -c -P {{ downloads_dir }}
|
||||
creates={{ downloads_dir }}/elgg-{{ elgg_version }}.zip
|
||||
when: internet_available
|
||||
|
@ -54,7 +54,7 @@
|
|||
- name: Change permissions on engine directory so Apache can write
|
||||
file: path=/opt/elgg/engine/ owner={{ apache_user }} mode=0755 state=directory
|
||||
|
||||
- name: Create an upload directory that Apache can write in or elgg
|
||||
- name: Create an upload directory that Apache can write in or Elgg
|
||||
file: path={{ elgg_upload_path }} state=directory owner={{ apache_user }}
|
||||
|
||||
- name: Change ownership
|
||||
|
@ -83,7 +83,7 @@
|
|||
# tar up a mysqldump of freshly installed database and use it in the install to avoid the startup
|
||||
# form, which worries me a lot. (/var/lib/mysql/elggdb)
|
||||
|
||||
- name: Load elgg database dump
|
||||
- name: Load Elgg database dump
|
||||
mysql_db: name={{ dbname }}
|
||||
state=import
|
||||
target=/tmp/elggdb.sql
|
||||
|
@ -92,26 +92,26 @@
|
|||
- name: Remove database dump after load
|
||||
file: name=/tmp/elggdb.sql state=absent
|
||||
|
||||
- name: Install config file for elgg in Apache
|
||||
- name: Install config file for Elgg in Apache
|
||||
template: src=elgg.conf dest=/etc/{{ apache_config_dir }}/elgg.conf
|
||||
|
||||
- name: Enable Elgg for debuntu (will already be enabled above for Redhat)
|
||||
- name: Enable Elgg for debuntu (will already be enabled above for redhat)
|
||||
file: path=/etc/apache2/sites-enabled/elgg.conf
|
||||
src=/etc/apache2/sites-available/elgg.conf
|
||||
state=link
|
||||
when: elgg_enabled and is_debuntu
|
||||
|
||||
- name: Disable Elgg for debuntu
|
||||
- name: Disable Elgg - remove config file for Elgg in Apache (debuntu)
|
||||
file: path=/etc/apache2/sites-enabled/elgg.conf
|
||||
state=absent
|
||||
when: not elgg_enabled and is_debuntu
|
||||
|
||||
- name: Disable Elgg for Redhat - remove config file for Elgg in Apache
|
||||
- name: Disable Elgg - remove config file for Elgg in Apache (redhat)
|
||||
file: dest=/etc/{{ apache_config_dir }}/elgg.conf
|
||||
state=absent
|
||||
when: not elgg_enabled and is_redhat
|
||||
|
||||
- name: Add Elgg to service list
|
||||
- name: Add 'elgg' to service list
|
||||
ini_file: dest='{{ service_filelist }}'
|
||||
section=elgg
|
||||
option='{{ item.option }}'
|
||||
|
@ -126,5 +126,5 @@
|
|||
- option: enabled
|
||||
value: "{{ elgg_enabled }}"
|
||||
|
||||
- name: Restart apache, so it picks up the new aliases
|
||||
- name: Restart Apache, so it picks up the new aliases
|
||||
service: name={{ apache_service }} state=restarted
|
||||
|
|
Loading…
Add table
Reference in a new issue