Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kalashnikovisme/3cb375698990c12193f2362eaf8cbda0 to your computer and use it in GitHub Desktop.
Save kalashnikovisme/3cb375698990c12193f2362eaf8cbda0 to your computer and use it in GitHub Desktop.
---
- hosts: all
vars:
name: "Your name"
email: "your_email"
tasks:
- command: git config --global user.email "{{ email }}"
- command: git config --global user.name "{{ name }}"
- apt: name={{ item }}
sudo: True
with_items:
- git
- curl
- build-essential
- openssl
- libreadline6
- libreadline6-dev
- zlib1g
- zlib1g-dev
- libssl-dev
- libyaml-dev
- libreadline-dev
- libsqlite3-dev
- libxslt1-dev
- libgdbm-dev
- libncurses5-dev
- libtool
- bison
- libffi-dev
- libsqlite3-0
- libmysqlclient-dev
- aptitude
- openvpn
- postgresql
- command: "curl -sSL https://get.rvm.io | bash -s stable --rails"
- lineinfile: line="source /home/pavel/.rvm/scripts/rvm" dest="~/.bashrc" state=present
- apt: name=bundler
sudo: True
- command: "touch /home/pavel/.gemrc"
sudo: True
- lineinfile: 'line="gem: --no-ri --no-rdoc" dest="~/.gemrc"'
- command: 'git config --global core.excludesfile ~/.gitignore'
- apt: name=git-flow
sudo: True
- apt: name={{ item }}
sudo: True
with_items:
- libpq-dev
- libmagickwand-dev
- nodejs
- npm
- command: "dpkg --add-architecture i386"
sudo: True
- command: sudo apt-get -f install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment