Mercurial > hg > Members > anatofuz > wordpress_ansible
view roles/install-mariadb/tasks/main.yml @ 12:626b2d034d92
move setting-mariadb to install-mariadb/main.yml
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 02 Sep 2020 15:07:45 +0900 |
parents | faa3afacbfd5 |
children | a3a179e8fac8 |
line wrap: on
line source
--- - name: install dnf packages become: yes dnf: name: {{ item }} state: latest loop: - mariadb - mariadb-server - MySQL-python3 - libselinux-python - name: start and enabled mariadb become: yes systemd: name: mariadb state: restarted enabled: yes - name: create a database wordpress become: yes mysql_db: name: wordpress state: present encoding: utf8 - name: create a MySQL user wordpress and give wordpress.* all privileges become: yes mysql_user: name: wordpress password: "hZzTwWuTeN" priv: "wordpress.*:ALL" host: localhost state: present