1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-15 04:32:11 +00:00

cleaner Ansible messaging

This commit is contained in:
A Holt 2017-10-27 10:32:45 -04:00 committed by GitHub
parent fbb68bdee6
commit 113b3c496f

View file

@ -1,24 +1,24 @@
- name: Get the phpmyadmin software - name: Get the phpMyAdmin software
get_url: url="{{ iiab_download_url }}/{{ phpMyAdmin }}" dest="{{ downloads_dir }}/phpMyAdmin.zip" get_url: url="{{ iiab_download_url }}/{{ phpMyAdmin }}" dest="{{ downloads_dir }}/phpMyAdmin.zip"
when: internet_available when: internet_available
- name: Copy it to permanent location /opt - name: Copy it to permanent location /opt
unarchive: src={{ downloads_dir }}/phpMyAdmin.zip dest=/opt/ unarchive: src={{ downloads_dir }}/phpMyAdmin.zip dest=/opt/
- name: Create a symbolic link to the folder of the current version phpmyadmin - name: Create a symbolic link to the folder of the current version phpMyAdmin
file: path=/opt/phpmyadmin src=phpMyAdmin-4.7.5-all-languages state=link file: path=/opt/phpmyadmin src=phpMyAdmin-4.7.5-all-languages state=link
- name: Copy the phpmyadmin config file into place - name: Copy the phpMyAdmin config file into place
template: src=config.inc.php dest=/opt/phpmyadmin/config.inc.php template: src=config.inc.php dest=/opt/phpmyadmin/config.inc.php
- name: Change the owner of the php tree to apache - name: Change the owner of the PHP tree to Apache
shell: "chown -R {{ apache_user }} /opt/phpmyadmin" shell: "chown -R {{ apache_user }} /opt/phpmyadmin"
- name: Put the alias into Apache config when enabled - name: Put the alias into Apache config when enabled
template: src=phpmyadmin.j2 dest=/etc/{{ apache_config_dir }}/phpmyadmin.conf template: src=phpmyadmin.j2 dest=/etc/{{ apache_config_dir }}/phpmyadmin.conf
when: phpmyadmin_enabled when: phpmyadmin_enabled
- name: Enable phpmyadmin - name: Enable phpMyAdmin
file: path=/etc/apache2/sites-enabled/phpmyadmin.conf file: path=/etc/apache2/sites-enabled/phpmyadmin.conf
src=/etc/apache2/sites-available/phpmyadmin.conf src=/etc/apache2/sites-available/phpmyadmin.conf
state=link state=link
@ -29,7 +29,7 @@
state=absent state=absent
when: not phpmyadmin_enabled and is_debuntu when: not phpmyadmin_enabled and is_debuntu
- name: add phpmyadmin to service list - name: Add phpmyadmin to service list
ini_file: dest='{{ service_filelist }}' ini_file: dest='{{ service_filelist }}'
section=phpmyadmin section=phpmyadmin
option='{{ item.option }}' option='{{ item.option }}'
@ -38,7 +38,7 @@
- option: name - option: name
value: phpMyAdmin value: phpMyAdmin
- option: description - 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"' 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 - option: path
value: /opt/phpmyadmin value: /opt/phpmyadmin
- option: enabled - option: enabled