2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 00:06:36 +00:00
bench/playbooks/roles/redis/tasks/main.yml
2019-12-04 18:35:42 +05:30

25 lines
541 B
YAML

---
- name: Install yum packages
yum:
name:
- redis
state: present
when: ansible_os_family == 'RedHat'
# Prerequisite for Debian and Ubuntu
- name: Install apt packages
apt:
pkg:
- redis-server
state: present
force: yes
when: ansible_distribution == 'Debian' or ansible_distribution == 'Ubuntu'
# Prerequisite for MACOS
- name: install prequisites for macos
homebrew:
name:
- redis
state: present
when: ansible_distribution == 'MacOSX'
...