mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-08-03 12:44:22 -07:00
* Add ArchLinux, Debian Bullseye and CentOS Stream 8 to CI.
* Add Alpine to CI matrix as well.
(cherry picked from commit a06903f33a
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
f60c90873f
commit
c0008e976f
56 changed files with 861 additions and 700 deletions
|
@ -1,5 +1,11 @@
|
|||
# General
|
||||
redis_packages:
|
||||
Alpine:
|
||||
- redis
|
||||
Archlinux:
|
||||
- redis
|
||||
Debian:
|
||||
- redis-server
|
||||
Ubuntu:
|
||||
- redis-server
|
||||
openSUSE Leap:
|
||||
|
@ -12,6 +18,9 @@ redis_packages:
|
|||
- redis
|
||||
|
||||
redis_bin:
|
||||
Alpine: /usr/bin/redis-server
|
||||
Archlinux: /usr/bin/redis-server
|
||||
Debian: /usr/bin/redis-server
|
||||
Ubuntu: /usr/bin/redis-server
|
||||
openSUSE Leap: /usr/sbin/redis-server
|
||||
Fedora: /usr/bin/redis-server
|
||||
|
|
|
@ -8,4 +8,4 @@
|
|||
|
||||
- import_tasks: setup_redis_cluster.yml
|
||||
when:
|
||||
- ansible_distribution in ['CentOS', 'Fedora', 'FreeBSD', 'openSUSE Leap', 'Ubuntu']
|
||||
- ansible_distribution in ['CentOS', 'Fedora', 'FreeBSD', 'openSUSE Leap', 'Ubuntu', 'Debian', 'Archlinux', 'Alpine']
|
||||
|
|
|
@ -1,44 +1,11 @@
|
|||
# We run two servers listening different ports
|
||||
# to be able to check replication (one server for master, another for replica).
|
||||
|
||||
- name: Install redis server apt dependencies
|
||||
apt:
|
||||
- name: Install redis dependencies
|
||||
package:
|
||||
name: "{{ redis_packages[ansible_distribution] }}"
|
||||
state: latest
|
||||
policy_rc_d: 101
|
||||
when:
|
||||
- ansible_facts.pkg_mgr == 'apt'
|
||||
notify: cleanup redis
|
||||
|
||||
- name: Install redis server rpm dependencies
|
||||
yum:
|
||||
name: "{{ redis_packages[ansible_distribution] }}"
|
||||
state: latest
|
||||
when:
|
||||
- ansible_facts.pkg_mgr == 'yum'
|
||||
notify: cleanup redis
|
||||
|
||||
- name: Install redis rpm dependencies
|
||||
dnf:
|
||||
name: "{{ redis_packages[ansible_distribution] }}"
|
||||
state: latest
|
||||
when: ansible_facts.pkg_mgr == 'dnf'
|
||||
notify: cleanup redis
|
||||
|
||||
- name: Install redis server zypper dependencies
|
||||
zypper:
|
||||
name: "{{ redis_packages[ansible_distribution] }}"
|
||||
state: latest
|
||||
when:
|
||||
- ansible_facts.pkg_mgr == 'community.general.zypper'
|
||||
notify: cleanup redis
|
||||
|
||||
- name: Install redis FreeBSD dependencies
|
||||
community.general.pkgng:
|
||||
name: "{{ redis_packages[ansible_distribution] }}"
|
||||
state: latest
|
||||
when:
|
||||
- ansible_facts.pkg_mgr == 'community.general.pkgng'
|
||||
policy_rc_d: "{{ 101 if ansible_facts.pkg_mgr == 'apt' else omit }}"
|
||||
notify: cleanup redis
|
||||
|
||||
- name: Install redis module
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue