aboutsummaryrefslogtreecommitdiff
path: root/ansible
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-01-11 22:28:16 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-01-11 22:28:16 +0100
commitfc8180a9fd4b4d3ab81b6e2501acfe690de6f950 (patch)
treea12fc8483307a27d892f77f1282d13d1341761af /ansible
parent99ce768a7d6fe9e828caf932554c4e095c1d00b2 (diff)
downloadinfra-fc8180a9fd4b4d3ab81b6e2501acfe690de6f950.tar.gz
infra-fc8180a9fd4b4d3ab81b6e2501acfe690de6f950.tar.bz2
infra-fc8180a9fd4b4d3ab81b6e2501acfe690de6f950.tar.xz
infra-fc8180a9fd4b4d3ab81b6e2501acfe690de6f950.zip
packages: Better set structure.
Diffstat (limited to 'ansible')
-rw-r--r--ansible/group_vars/all/packages.yml14
-rw-r--r--ansible/roles/packages/tasks/main.yml6
2 files changed, 15 insertions, 5 deletions
diff --git a/ansible/group_vars/all/packages.yml b/ansible/group_vars/all/packages.yml
index fadca1c..be0386f 100644
--- a/ansible/group_vars/all/packages.yml
+++ b/ansible/group_vars/all/packages.yml
@@ -1,2 +1,14 @@
-packages_packages:
+packages_packages: "{{ packages__unix }} + {{ packages__misc }}"
+
+packages__unix:
- pwgen
+ - iputils-ping
+ - ca-certificates
+ - unzip
+ - sudo
+ - vim
+ - less
+ - ack
+
+packages__misc:
+ - zip
diff --git a/ansible/roles/packages/tasks/main.yml b/ansible/roles/packages/tasks/main.yml
index 551c4eb..711aa9a 100644
--- a/ansible/roles/packages/tasks/main.yml
+++ b/ansible/roles/packages/tasks/main.yml
@@ -2,7 +2,6 @@
- name: configure debian repositories
tags: packages
notify: update apt cache
- become: yes
copy:
dest: /etc/apt/sources.list
content: "{{ versions[packages__version] }}"
@@ -41,7 +40,6 @@
- name: Enable backports repository by default
when: packages__enable_backports
- become: yes
copy:
dest: /etc/apt/preferences.d/bitraf-packages
content: |
@@ -51,9 +49,9 @@
- meta: flush_handlers
+- debug: var=packages_packages
+
- name: install debian packages
- tags: packages
- become: yes
apt:
name: "{{ packages_packages }}"
install_recommends: no