Add all files needed to bring up VM and run agaric.com locally

This commit is contained in:
benjamin melançon 2018-08-20 10:45:20 -04:00
parent 52c8b60bac
commit 4d2bc0ee24
742 changed files with 24037 additions and 0 deletions

View file

@ -0,0 +1,34 @@
---
# Include OS-specific installation tasks.
- include: setup-RedHat.yml
when:
- ruby_install_from_source == False
- ansible_os_family == 'RedHat'
- include: setup-Debian.yml
when:
- ruby_install_from_source == False
- ansible_os_family == 'Debian'
# Install ruby from source when ruby_install_from_source is true.
- include: install-from-source.yml
when: ruby_install_from_source == True
- name: Add user installed RubyGems bin directory to global $PATH.
copy:
src: rubygems.sh
dest: /etc/profile.d/rubygems.sh
mode: 0644
# Install Bundler and configured gems.
- name: Install Bundler.
gem: name=bundler state=present user_install=no
when: ruby_install_bundler
- name: Install configured gems.
gem:
name: "{{ item }}"
state: present
become: yes
become_user: "{{ ruby_install_gems_user }}"
with_items: "{{ ruby_install_gems }}"