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/)
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue