Skip to content

Instantly share code, notes, and snippets.

@mariusv
Last active November 13, 2015 22:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mariusv/2bfdeb6e6a90258a43ba to your computer and use it in GitHub Desktop.
Save mariusv/2bfdeb6e6a90258a43ba to your computer and use it in GitHub Desktop.
Ansible playbook to enable EPEL + REMI on a AWS Linux AMI. This gist is created for /u/AngleMan on https://www.reddit.com/r/ansible .
---
- hosts: all
sudo: yes
tasks:
- name: Enable EPEL
command: yum-config-manager --enable epel
- name: Install remi repo.
yum:
name: http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
state: present
- name: Import remi GPG key.
rpm_key:
key: http://rpms.remirepo.net/RPM-GPG-KEY-remi
state: present
- name: be sure MySQL-python is installed
yum: name={{ item }} state=installed enablerepo=remi
with_items:
- MySQL-python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment