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,38 @@
---
- name: Include OS-specific variables.
include_vars: "{{ ansible_os_family }}.yml"
when: ansible_distribution != 'Ubuntu' or ansible_distribution != 'Fedora'
- name: Include OS-specific variables for Fedora.
include_vars: "{{ ansible_distribution }}.yml"
when: ansible_distribution == 'Fedora'
- name: Include version-specific variables for Ubuntu.
include_vars: "{{ ansible_distribution }}-{{ ansible_distribution_version }}.yml"
when: ansible_distribution == 'Ubuntu'
- name: Define java_packages.
set_fact:
java_packages: "{{ __java_packages | list }}"
when: java_packages is not defined
# Setup/install tasks.
- include: setup-RedHat.yml
when: ansible_os_family == 'RedHat'
static: no
- include: setup-Debian.yml
when: ansible_os_family == 'Debian'
static: no
- include: setup-FreeBSD.yml
when: ansible_os_family == 'FreeBSD'
static: no
# Environment setup.
- name: Set JAVA_HOME if configured.
template:
src: java_home.sh.j2
dest: /etc/profile.d/java_home.sh
mode: 0644
when: java_home is defined and java_home != ''

View file

@ -0,0 +1,4 @@
---
- name: Ensure Java is installed.
apt: "name={{ item }} state=present"
with_items: "{{ java_packages }}"

View file

@ -0,0 +1,10 @@
---
- name: Ensure Java is installed.
pkgng: "name={{ item }} state=present"
with_items: "{{ java_packages }}"
- name: ensure proc is mounted
mount: name=/proc fstype=procfs src=proc opts=rw state=mounted
- name: ensure fdesc is mounted
mount: name=/dev/fd fstype=fdescfs src=fdesc opts=rw state=mounted

View file

@ -0,0 +1,4 @@
---
- name: Ensure Java is installed.
package: "name={{ item }} state=installed"
with_items: "{{ java_packages }}"