-
Notifications
You must be signed in to change notification settings - Fork 2
/
g4t_os_setup.yml
54 lines (49 loc) · 1.2 KB
/
g4t_os_setup.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
- hosts: galaxy_hosts
become: true
pre_tasks:
- name: Only update apt cache if the last one is more than 3600 seconds ago
apt:
update_cache: yes
cache_valid_time: 3600
- name: Install common dependencies
package:
pkg:
- sudo
- git-core
- make
- virtualenv
- nano
- vim
- curl
- unzip
- samtools
- zlib1g-dev
state: present
- name: Install OS specific dependencies
package:
pkg:
- python-psycopg2
- python-pip
state: present
when:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_major_version <= "16"
-
- name: Install OS specific dependencies
package:
pkg:
- python3-psycopg2
- python3-pip
state: present
when:
- ansible_distribution == 'Ubuntu'
- ansible_distribution_major_version >= "18"
roles:
- role: common
post_tasks:
- name: Remove useless packages from the cache
apt:
autoclean: yes
- name: Remove dependencies that are no longer required
apt:
autoremove: yes