1
0
Fork 0
mirror of https://github.com/iiab/iiab.git synced 2025-02-13 11:42:08 +00:00
iiab/roles/phpmyadmin/tasks/enable-or-disable.yml
2021-09-29 17:59:20 +01:00

13 lines
474 B
YAML

- 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 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