summaryrefslogtreecommitdiff
path: root/tasks/RedHat-phpmyadmin.yml
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2026-09-18 01:19:20 +0200
committerjerome <jerome@xlinfo.fr>2026-09-18 01:19:20 +0200
commitaa1e170bbc39440d85b660aad530001e6f8de3e4 (patch)
tree6f5372e74b1b8f6c7cf167bca774fa5bcf543146 /tasks/RedHat-phpmyadmin.yml
parente9d771811b033f6bc1aeb3712050d1d300b8cc13 (diff)
downloadlamp-aa1e170bbc39440d85b660aad530001e6f8de3e4.tar.gz
lamp-aa1e170bbc39440d85b660aad530001e6f8de3e4.zip
MAJ
Diffstat (limited to 'tasks/RedHat-phpmyadmin.yml')
-rw-r--r--tasks/RedHat-phpmyadmin.yml23
1 files changed, 23 insertions, 0 deletions
diff --git a/tasks/RedHat-phpmyadmin.yml b/tasks/RedHat-phpmyadmin.yml
new file mode 100644
index 0000000..569ddd2
--- /dev/null
+++ b/tasks/RedHat-phpmyadmin.yml
@@ -0,0 +1,23 @@
+---
+- name: installation epel-release
+ package:
+ name: epel-release
+ state: present
+
+- name: installation phpmyadmin
+ package:
+ name: phpmyadmin
+ state: present
+
+- name: phpmyadmin.conf
+ replace:
+ path: /etc/httpd/conf.d/phpMyAdmin.conf
+ regexp: "Require local"
+ replace: "Require all granted"
+ after: "<Directory /usr/share/phpMyAdmin/>"
+ before: "</Directory>"
+ notify: restarting_apache
+
+- name: database
+ shell: mysql < /usr/share/phpMyAdmin/sql/create_tables.sql
+