Blog_IMIE/ops/ansible/phpmyadmin.yml
2018-11-01 16:57:25 +01:00

31 lines
624 B
YAML

---
- hosts: hifive
become: yes
become_user: root
roles:
- { role: common }
tasks:
- name: Install amazon epel
command: amazon-linux-extras install epel -y
- name: Install phpMyAdmin
yum:
name: phpmyadmin
state: latest
- name: Create phpMyAdmin.conf
template:
src: phpMyAdmin.j2
dest: /etc/httpd/conf.d/phpMyAdmin.conf
force: yes
#- name: Create .htaccess
#htpasswd:
#path: /usr/share/phpMyAdmin/.htaccess
#name: hifive
#password: hifive
#owner: root
#group: www-data
#mode: 0640