mirror of
https://github.com/iiab/iiab.git
synced 2025-02-15 04:32:11 +00:00
* change apache_data to apache_user in all * no libapach2 in centos. just php. no php-magick in centos * remove redundant vars entries * do not create apache user * missed one pound sign * soft code all references to apache_user * centos requires older setuptools * revert ansible_lsb.id in xsce.yml * try getting recent pip * move pip download to 2prep so that kalite success is not dependent on iiab coming first * still need to replace setuptools in kalite * add curl -- needed in debian * massivly substitue iiab for xsce, and rename files * completed runansible * centos fixes,install pip * appliance means no iptables rules * change to earlier version of setuptools for centos * delete file duplicate, hopefully unnecessary. generate the offline docs * wiki docs errors * create the admin group -- deleted earlier * use the --yes option with pip uninstall * base of repo moved from schoolserver to iiab, unleashkids.org->iiab.io * network detection broken due to tupo
47 lines
1.9 KiB
YAML
47 lines
1.9 KiB
YAML
- name: Get the phpmyadmin software
|
|
get_url: url="{{ iiab_download_url }}/{{ phpMyAdmin }}" dest="{{ downloads_dir}}/phpMyAdmin.zip"
|
|
when: not {{ use_cache }} and not {{ no_network }}
|
|
tags:
|
|
- download2
|
|
|
|
- name: Copy it to permanent location /opt
|
|
unarchive: src={{ downloads_dir }}/phpMyAdmin.zip dest=/opt/
|
|
|
|
- name: Create a symbolic link to the folder of the current version phpmyadmin
|
|
file: path=/opt/phpmyadmin src=phpMyAdmin-4.2.7.1-all-languages state=link
|
|
|
|
- name: Copy the phpmyadmin config file into place
|
|
template: src=config.inc.php dest=/opt/phpmyadmin/config.inc.php
|
|
|
|
- name: Change the owner of the php tree to apache
|
|
shell: "chown -R {{ apache_user }} /opt/phpmyadmin"
|
|
|
|
- name: Put the alias into Apache config when enabled
|
|
template: src=phpmyadmin.j2 dest=/etc/{{ apache_config_dir }}/phpmyadmin.conf
|
|
when: phpmyadmin_enabled
|
|
|
|
- name: Enable phpmyadmin
|
|
file: path=/etc/apache2/sites-enabled/phpmyadmin.conf
|
|
src=/etc/apache2/sites-available/phpmyadmin.conf
|
|
state=link
|
|
when: phpmyadmin_enabled and is_debuntu
|
|
|
|
- name: Remove the alias into Apache config when not enabled
|
|
file: path=/etc/apache2/sites-enabled/phpmyadmin.conf
|
|
state=absent
|
|
when: not phpmyadmin_enabled and is_debuntu
|
|
|
|
- name: add phpmyadmin to service list
|
|
ini_file: dest='{{ service_filelist }}'
|
|
section=phpmyadmin
|
|
option='{{ item.option }}'
|
|
value='"{{ item.value }}"'
|
|
with_items:
|
|
- option: name
|
|
value: phpMyAdmin
|
|
- option: description
|
|
value: '"phpMyAdmin is an interface with a mysql database written in php, and available to administer the database engine locally or across the network"'
|
|
- option: path
|
|
value: /opt/phpmyadmin
|
|
- option: enabled
|
|
value: "{{ phpmyadmin_enabled }}"
|