1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-03-09 15:40:17 +00:00

phpmyadmin was never migrated to nginx

This commit is contained in:
George Hunt 2021-02-03 19:49:17 +00:00
parent 45dbfaaa2b
commit 83a848e105
6 changed files with 29 additions and 27 deletions

View file

@ -1,9 +1,13 @@
- name: Enable phpMyAdmin via Apache, if phpmyadmin_enabled
command: a2ensite phpmyadmin.conf
- name: Enable phpMyAdmin via nginx, if phpmyadmin_enabled
template:
src: phpmyadmin.conf.j2
dest: "{{ nginx_conf_dir }}/phpmyadmin.conf"
when: phpmyadmin_enabled
#when: apache_installed is defined and phpmyadmin_enabled
- name: Disable phpMyAdmin via Apache, if not phpmyadmin_enabled
command: a2dissite phpmyadmin.conf
- name: Disable phpMyAdmin via nginx, if not phpmyadmin_enabled
file:
path: "{{ nginx_conf_dir }}/phpmyadmin.conf"
state: absent
when: not phpmyadmin_enabled
#when: apache_installed is defined and not phpmyadmin_enabled

View file

@ -1,13 +1,3 @@
- name: "Set 'apache_install: True' and 'apache_enabled: True'"
set_fact:
apache_install: True
apache_enabled: True
- name: APACHE - run 'httpd' role
include_role:
name: httpd
- name: Download {{ phpmyadmin_dl_url }} to {{ downloads_dir }}
get_url:
url: "{{ phpmyadmin_dl_url }}" # e.g. https://files.phpmyadmin.net/phpMyAdmin/5.0.4/phpMyAdmin-5.0.4-all-languages.zip
@ -55,13 +45,6 @@
# # recurse: yes
# # state: directory
- name: Install /etc/{{ apache_conf_dir }}/phpmyadmin.conf from template, if phpmyadmin_enabled
template:
src: phpmyadmin.j2
dest: "/etc/{{ apache_conf_dir }}/phpmyadmin.conf"
when: apache_installed is defined
# RECORD phpMyAdmin AS INSTALLED
- name: "Set 'phpmyadmin_installed: True'"