Skip to content

Commit dec1b99

Browse files
Michael Vasseurvmcj
authored andcommitted
Move package list easier to debug
This make overwriting much easier and when we debug by printing all variables this now showes up. We can now also override/extend it directly in the group.
1 parent 360d917 commit dec1b99

File tree

3 files changed

+57
-55
lines changed

3 files changed

+57
-55
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
REMOVED_PACKAGES:
2+
- apport
3+
- ntp
4+
5+
INSTALLED_PACKAGES:
6+
- ack
7+
- git
8+
- htop
9+
- httpie
10+
- ncdu
11+
- pv
12+
- screen
13+
- autoconf
14+
- automake
15+
- efibootmgr
16+
- curl
17+
- gcc
18+
- g++
19+
- default-jdk-headless
20+
- make
21+
- zip
22+
- unzip
23+
- php-cli
24+
- php-gd
25+
- php-curl
26+
- php-mysql
27+
- php-json
28+
- php-xml
29+
- php-zip
30+
- php-mbstring
31+
- php-intl
32+
- bsdmainutils
33+
- libcgroup-dev
34+
- libcurl4-gnutls-dev
35+
- libjsoncpp-dev
36+
- libmagic-dev
37+
- debootstrap
38+
- texlive-latex-recommended
39+
- texlive-latex-extra
40+
- apache2-utils
41+
- tig
42+
- bat
43+
- jq
44+
- python3-sphinx
45+
- autoconf
46+
- automake
47+
- bats
48+
- python3-sphinx
49+
- python3-sphinx-rtd-theme
50+
- rst2pdf
51+
- fontconfig
52+
- python3-yaml
53+
- latexmk
54+
- acl

provision-contest/ansible/roles/base_packages/tasks/main.yml

Lines changed: 2 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -46,65 +46,12 @@
4646
- name: Remove some packages
4747
apt:
4848
state: absent
49-
pkg:
50-
- apport
51-
- ntp
49+
pkg: "{{ REMOVED_PACKAGES }}"
5250

5351
- name: Install common required/useful packages
5452
apt:
5553
state: present
56-
pkg:
57-
- ack
58-
- git
59-
- htop
60-
- httpie
61-
- ncdu
62-
- pv
63-
- screen
64-
- autoconf
65-
- automake
66-
- efibootmgr
67-
- curl
68-
- gcc
69-
- g++
70-
- default-jdk-headless
71-
- make
72-
- zip
73-
- unzip
74-
- php-cli
75-
- php-gd
76-
- php-curl
77-
- php-mysql
78-
- php-json
79-
- php-xml
80-
- php-zip
81-
- php-mbstring
82-
- php-intl
83-
- bsdmainutils
84-
- libcgroup-dev
85-
- libcurl4-gnutls-dev
86-
- libjsoncpp-dev
87-
- libmagic-dev
88-
- debootstrap
89-
- texlive-latex-recommended
90-
- texlive-latex-extra
91-
- apache2-utils
92-
- tig
93-
- bat
94-
- jq
95-
- python3-sphinx
96-
- autoconf
97-
- automake
98-
- bats
99-
- python3-sphinx
100-
- python3-sphinx-rtd-theme
101-
- rst2pdf
102-
- fontconfig
103-
- python3-yaml
104-
- latexmk
105-
- acl
106-
- gdb
107-
- rsync
54+
pkg: "{{ INSTALLED_PACKAGES }}"
10855

10956
- name: Install composer
11057
copy:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.yml

0 commit comments

Comments
 (0)