mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Merge pull request #8966 from jlaska/devel
Include el7 mariadb support in mysql integration test
This commit is contained in:
commit
239b6e79c3
2 changed files with 15 additions and 4 deletions
|
@ -17,15 +17,20 @@
|
|||
# along with Ansible. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
# ============================================================
|
||||
- include_vars: '{{ ansible_os_family }}.yml'
|
||||
- include_vars: '{{ item }}'
|
||||
with_first_found:
|
||||
- files:
|
||||
- '{{ ansible_os_family }}-{{ ansible_distribution_major_version }}.yml'
|
||||
- '{{ ansible_os_family }}.yml'
|
||||
paths: '../vars'
|
||||
|
||||
- name: install mysqldb_test rpm dependencies
|
||||
yum: name={{ item }} state=latest
|
||||
yum: name={{ item }} state=latest
|
||||
with_items: mysql_packages
|
||||
when: ansible_pkg_mgr == 'yum'
|
||||
|
||||
- name: install mysqldb_test debian dependencies
|
||||
apt: name={{ item }} state=latest
|
||||
- name: install mysqldb_test debian dependencies
|
||||
apt: name={{ item }} state=latest
|
||||
with_items: mysql_packages
|
||||
when: ansible_pkg_mgr == 'apt'
|
||||
|
||||
|
|
6
test/integration/roles/setup_mysql_db/vars/RedHat-7.yml
Normal file
6
test/integration/roles/setup_mysql_db/vars/RedHat-7.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
mysql_service: 'mariadb'
|
||||
|
||||
mysql_packages:
|
||||
- mariadb-server
|
||||
- MySQL-python
|
||||
- bzip2
|
Loading…
Reference in a new issue