Last active
April 28, 2022 23:04
-
-
Save RyanSnodgrass/92d91e7262d788a9a2abdab6da3126f2 to your computer and use it in GitHub Desktop.
My work in progress to install what's needed for fenrir on AWS EC2 instances
This file contains hidden or 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
--- | |
# ansible-pull -U https://gist.githubusercontent.com/RyanSnodgrass/92d91e7262d788a9a2abdab6da3126f2 ec2-ansible-playbook.yml | |
- | |
hosts: all | |
roles: | |
- | |
role: rvm_io.ruby | |
rvm1_install_flags: --auto-dotfiles | |
rvm1_install_path: /usr/local/rvm | |
rvm1_rubies: | |
- ruby-{{ruby_version}} | |
# was erroring on rvm update. Something about the GPG key | |
rvm1_rvm_check_for_updates: false | |
rvm1_user: root | |
tags: ruby | |
vars: | |
ruby_version: 2.3.4 | |
- | |
hosts: all | |
become: true | |
become_user: root | |
tasks: | |
- name: Install the 'Development tools' package group | |
yum: | |
name: "@Development tools" | |
state: present | |
- name: EPEL | |
yum: | |
name: epel-release | |
state: latest | |
- name: bug fix for libselinux-python error when copying files | |
yum: | |
name: libselinux-python | |
state: latest | |
- name: Download redis server | |
unarchive: | |
src: http://download.redis.io/redis-stable.tar.gz | |
dest: /usr/local/share | |
remote_src: true | |
- name: Redis makefile | |
make: | |
chdir: /usr/local/share/redis-stable | |
- name: redis install commands into path | |
make: | |
chdir: /usr/local/share/redis-stable | |
target: install |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment