--- - yum: name=http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm state=present - yum: name="{{ item }}" state=latest with_items: - mysql-community-server - MySQL-python - name: Copy mysql config template: src=my.cnf dest=/etc/my.cnf - name: Copy phabricator stop words copy: src=stopwords.txt dest=/srv/stopwords.txt notify: restart mysql - name: Create database user mysql_user: state=present user={{ mysql_user }} password={{ mysql_pass}} priv=*.*:ALL host=10.0.0.0/255.255.0.0