wget http://rpms.remirepo.net/enterprise/remi-release-6.rpm
sudo rpm -Uvh remi-release-6.rpmsudo vim /etc/yum.repos.d/remi.repo #to mark the repo as enabledsudo yum install redissudo chkconfig redis onsudo service redis start---
- hosts: test
remote_user: deploy
sudo: True
tasks:
- name: ensure redis remi repo is installed
yum:
name: http://rpms.remirepo.net/enterprise/remi-release-6.rpm
state: present
It works and installs the remi repo... I can handle getting redis installed, started, and chkconfig on, but I'm wondering how to automated editing the remi.repo to enable the repo as active so my play will run.
---
- hosts: test
remote_user: deploy
sudo: True
tasks:
- name: ensure redis remi repo is installed
yum:
name: http://rpms.remirepo.net/enterprise/remi-release-6.rpm
state: present
- name: ensure remi repo is enabled and redis is installed
yum: name=redis enablerepo=remi
- name: ensure redis is set to start at boot
action: command /sbin/chkconfig redis on
- name: ensure redis is started
service: name=redis state=started