feat: add support debian 10 and ansible 2.9

This commit is contained in:
Adrien Waksberg 2020-02-08 17:32:59 +01:00
parent 59b557c6e7
commit e947d74e13
6 changed files with 13 additions and 8 deletions

View file

@ -15,13 +15,13 @@ provisioner:
ansible_inventory: ./test/integration/inventory
platforms:
- name: debian-9
- name: debian
driver_config:
image: "nishiki/debian9:ansible-<%= ENV['ANSIBLE_VERSION'] ? ENV['ANSIBLE_VERSION'] : '2.8' %>"
image: "nishiki/debian<%= ENV['DEBIAN_VERSION'] ? ENV['DEBIAN_VERSION'] : '10' %>:ansible-<%= ENV['ANSIBLE_VERSION'] ? ENV['ANSIBLE_VERSION'] : '2.9' %>"
command: /bin/systemd
volume:
- /sys/fs/cgroup:/sys/fs/cgroup:ro
security_opt: seccomp=unconfined
privileged: cap-add=SYS_ADMIN
suites:
- name: default

View file

@ -3,7 +3,10 @@ sudo: required
language: ruby
env:
- ANSIBLE_VERSION=2.8
- DEBIAN_VERSION=9 ANSIBLE_VERSION=2.8
- DEBIAN_VERSION=9 ANSIBLE_VERSION=2.9
- DEBIAN_VERSION=10 ANSIBLE_VERSION=2.8
- DEBIAN_VERSION=10 ANSIBLE_VERSION=2.9
services:
- docker

View file

@ -8,8 +8,8 @@ Install and configure MariaDB
## Requirements
* Ansible >= 2.6
* Debian Stretch
* Ansible >= 2.8
* Debian Stretch and Buster
## Role variables

View file

@ -11,6 +11,7 @@ galaxy_info:
- name: Debian
versions:
- stretch
- buster
galaxy_tags:
- database

View file

@ -9,6 +9,7 @@
packages:
- mariadb-server
- python-mysqldb
- python3-mysqldb
retries: 2
register: result
until: result is succeeded

View file

@ -1,8 +1,8 @@
# {{ ansible_managed }}
{% for section, options in mariadb_full_config.iteritems() %}
{% for section, options in mariadb_full_config.items() %}
[{{section}}]
{% for option, value in options.iteritems() %}
{% for option, value in options.items() %}
{{ option }}{% if not value is sameas true %} = {{ value }}{% endif %}
{% endfor %}