Skip to content

Instantly share code, notes, and snippets.

@gigibytes
Last active March 5, 2024 00:43
Show Gist options
  • Save gigibytes/0e1d2da179165a945d16e870c68591c9 to your computer and use it in GitHub Desktop.
Save gigibytes/0e1d2da179165a945d16e870c68591c9 to your computer and use it in GitHub Desktop.
Pragmatic Programmer Ruby/Rails Course Vagrantfile + Ansible Playbook
---
- hosts: all
become: yes
tasks:
- name: Install dependencies (list from course)
apt:
name: "{{ packages }}"
update_cache: yes
vars:
packages:
- git-core
- curl
- zlib1g-dev
- build-essential
- libssl-dev
- libreadline-dev
- libyaml-dev
- libsqlite3-dev
- sqlite3
- libxml2-dev
- libxslt1-dev
- libcurl4-openssl-dev
- software-properties-common
- libffi-dev
- nodejs
- npm
- rbenv
- name: Install Ruby
apt:
name: ruby-full
- name: Install Rails Gem
community.general.gem:
name: rails
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/mantic64"
config.vm.provision "ansible" do |ansible|
ansible.verbose = "v"
ansible.playbook = "playbook.yml"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment