mirror of
https://github.com/frappe/bench.git
synced 2024-11-14 09:14:04 +00:00
21 lines
567 B
YAML
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'
|
||
|
...
|