2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-12 08:16:28 +00:00
bench/playbooks/roles/redis/tasks/main.yml
2018-02-15 17:48:17 +05:30

21 lines
567 B
YAML

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