2
0
mirror of https://github.com/frappe/bench.git synced 2024-09-24 13:09:01 +00:00
bench/playbooks/roles/redis/tasks/main.yml

25 lines
541 B
YAML
Raw Normal View History

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