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/) Which is based on [Keep A Changelog](http://keepachangelog.com/)
## [Unreleased] ## [Unreleased]
- fix: install python-mysqldb package
## [v1.0.0] - 2019-02-23 ## [v1.0.0] - 2019-02-23
- first version - first version

View file

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

View file

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