Last active
March 5, 2024 00:43
-
-
Save gigibytes/0e1d2da179165a945d16e870c68591c9 to your computer and use it in GitHub Desktop.
Pragmatic Programmer Ruby/Rails Course Vagrantfile + Ansible Playbook
This file contains 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 | |
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 |
This file contains 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
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