forked from jan-warchol/ansible-setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcli-install-packages.yml
65 lines (60 loc) · 1.92 KB
/
cli-install-packages.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
- hosts: all
become: yes
tasks:
# FIXME
# Ansible's apt_repository module doesn't work correcty with Linux Mint,
# see https://github.com/ansible/ansible/issues/4587
# Also, the filenames that are checked for existence are hardcoded :(
- name: Add official git PPA
command: >
add-apt-repository --yes ppa:git-core/ppa
creates=/etc/apt/sources.list.d/git-core-ppa-trusty.list
register: git_ppa_status
- name: update apt cache
apt: update_cache=yes
when: git_ppa_status.changed
- name: add asciinema PPA
apt_repository:
repo: ppa:zanchey/asciinema
codename: "{{ dist_override | default(omit) }}"
filename: "asciinema"
- name: Install latest versions of apt packages
apt:
name:
- asciinema # for recording teminal sessions
- build-essential
- flip
- git
- htop
- ipython
- gnupg
- openssh-server
- pass
- pandoc # for diffing binary documents
# python environment
# NEVER mix pip installation methods (e.g. via apt and pip), see
# https://github.com/pypa/pip/issues/5221#issuecomment-382069604
- python-pip
- python3-pip # may not be present by default
- python3-setuptools # required to install some pip pkgs
- python-dev
- python-virtualenv
# end python environment
- python-numpy
- python-scipy
- python-matplotlib
- python-tk
- snapd # e.g. for VSCode installation
- sshfs
- ranger
- tmux
- trash-cli
- tree
state: latest
install_recommends: no
update_cache: yes
cache_valid_time: 3600
- name: Install pip packages
pip:
name: termtosvg # recording terminal sessions
executable: pip3