fix: install python-mysqldb package

This commit is contained in:
Adrien Waksberg 2019-02-23 20:07:16 +01:00
parent fe3deb437d
commit 33080999a2
3 changed files with 13 additions and 3 deletions

View file

@ -4,6 +4,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased]
- fix: install python-mysqldb package
## [v1.0.0] - 2019-02-23
- first version

View file

@ -1,7 +1,11 @@
---
- name: install package
package:
name: mariadb-server
name: '{{ packages }}'
vars:
packages:
- mariadb-server
- python-mysqldb
retries: 2
register: result
until: result is succeeded

View file

@ -7,8 +7,13 @@ puts '================================'
puts %x(ansible --version)
puts '================================'
describe package('mariadb-server') do
it { should be_installed }
%w[
mariadb-server
python-mysqldb
].each do |name|
describe package(name) do
it { should be_installed }
end
end
describe file('/etc/mysql/mariadb.cnf') do