-
Notifications
You must be signed in to change notification settings - Fork 1
/
mosh.yml
40 lines (37 loc) · 927 Bytes
/
mosh.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
37
38
39
40
- name: MOSH (SSH alternative)
hosts: all
vars:
build: '{{gitbuild}}/mosh'
tasks:
- name: MOSH prereqs (EC2)
become: true
yum: name={{item}}
enablerepo=epel
with_items:
- automake
- gcc-c++
- protobuf-compiler
- protobuf-devel
- libutempter-devel
- ncurses
- ncurses-devel
- zlib-devel
- boost-devel
when: ansible_distribution == 'Amazon'
- name: MOSH prereqs (non-EC2)
become: true
pacman: name={{item}}
with_items:
- protobuf
when: ansible_distribution == 'Archlinux'
- name: MOSH source
git: repo=https://github.com/keithw/mosh
dest={{build}}
remote=keithw
- name: MOSH install
shell: sh ./autogen.sh &&
./configure &&
make &&
make install
chdir={{build}}
creates=/usr/local/bin/mosh-server