-
Notifications
You must be signed in to change notification settings - Fork 2
/
main.yml
36 lines (33 loc) · 885 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
- name: configure jekyll
hosts: blog
user: ubuntu
become: yes
tasks:
- name: Latest version of Ruby is installed
apt:
pkg: "{{ item }}"
state: latest
update_cache: yes
with_items:
- git-core
- curl
- zlib1g-dev
- build-essential
- libssl-dev
- libreadline-dev
- libyaml-dev
- libsqlite3-dev
- sqlite3
- libxml2-dev
- libxslt1-dev
- libcurl4-openssl-dev
- python-software-properties
- libffi-dev
- ruby2.1
- ruby2.1-dev
- name: Symlink exists for Ruby 2.0
file: src=/usr/bin/ruby2.1 dest=/usr/local/bin/ruby state=link
- name: Symlink exists for Ruby Gems 2.0
file: src=/usr/bin/gem2.1 dest=/usr/local/bin/gem state=link
- name: Install Jekyll Gems
command: gem install jekyll