Last active
November 13, 2015 22:29
-
-
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 .
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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