1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 19:52:06 +00:00
iiab/roles/phpmyadmin/tasks/enable-or-disable.yml

14 lines
474 B
YAML
Raw Normal View History

2021-02-03 19:49:17 +00:00
- 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
2021-02-03 19:49:17 +00:00
- 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