Skip to content

Instantly share code, notes, and snippets.

@shohey1226
Last active January 3, 2016 18:29
Show Gist options
  • Save shohey1226/8502034 to your computer and use it in GitHub Desktop.
Save shohey1226/8502034 to your computer and use it in GitHub Desktop.
---
- hosts: servers
user: root
tasks:
- name: install the latest git
command: rpm --import http://apt.sw.be/RPM-GPG-KEY.dag.txt
command: rpm -i http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm
- name: install git with yum
yum: name=git enablerepo=rpmforge-extras state=latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment