fix: install python-mysqldb package
This commit is contained in:
parent
fe3deb437d
commit
33080999a2
3 changed files with 13 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -7,8 +7,13 @@ puts '================================'
|
|||
puts %x(ansible --version)
|
||||
puts '================================'
|
||||
|
||||
describe package('mariadb-server') do
|
||||
%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
|
||||
|
|
Loading…
Reference in a new issue