From 8527a4dd92b54c087e585967514ef1d1fe433746 Mon Sep 17 00:00:00 2001 From: lavenderguitar Date: Sun, 6 Feb 2022 23:15:17 -0500 Subject: [PATCH] Install ruby to start --- tasks/install_ruby.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 tasks/install_ruby.yml diff --git a/tasks/install_ruby.yml b/tasks/install_ruby.yml new file mode 100644 index 0000000..2f4bbc6 --- /dev/null +++ b/tasks/install_ruby.yml @@ -0,0 +1,31 @@ +--- +- name: jekyll_site | Install Ruby | Add brightbox PPA + apt_repository: + repo: 'ppa:brightbox/ruby-ng' + become: yes + +- name: jekyll_site | Install Ruby | Install Ruby + apt: + name: "ruby{{ ruby_version }}" + state: present + update_cache: yes + become: yes + +- name: jekyll_site | Install Ruby | Install Ruby Development headers + apt: + name: "ruby{{ ruby_version }}-dev" + state: present + update_cache: yes + become: yes + +- name: jekyll_site | Install Ruby | Update ruby alternatives + alternatives: + name: ruby + path: "/usr/bin/ruby{{ ruby_version }}" + become: yes + +- name: jekyll_site | Install Ruby | Update Gem alternatives + alternatives: + name: gem + path: "/usr/bin/gem{{ ruby_version }}" + become: yes \ No newline at end of file