Mercurial > hg > Members > anatofuz > wordpress_ansible
diff tasks/install-mariadb.yml @ 0:10185cc821e4
add
author | k178572 |
---|---|
date | Wed, 20 Sep 2017 18:12:15 +0900 |
parents | |
children | fa8aa41596b7 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tasks/install-mariadb.yml Wed Sep 20 18:12:15 2017 +0900 @@ -0,0 +1,16 @@ + - name: install dnf packages + dnf: name={{ item }} state=latest + become: yes + with_items: + - mariadb + - mariadb-server + - MySQL-python + +# start mariadb + - service: name=mariadb state=restarted + become: yes + +# chkconfig enabled mariadb + - service: name=mariadb enabled=yes + become: yes +