aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2019-01-11 23:31:48 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2019-01-11 23:31:48 +0100
commitf520901531b30de93217b85980fea920d8e1b18a (patch)
treea917355352e43404323601da9c6ddd0e76aec718
parent2f28493840d9a89de3bb14612d7a8cb762c1980f (diff)
downloadinfra-f520901531b30de93217b85980fea920d8e1b18a.tar.gz
infra-f520901531b30de93217b85980fea920d8e1b18a.tar.bz2
infra-f520901531b30de93217b85980fea920d8e1b18a.tar.xz
infra-f520901531b30de93217b85980fea920d8e1b18a.zip
packages: adding tags and become.
-rw-r--r--ansible/all.yml4
-rw-r--r--ansible/group_vars/all/packages.yml6
-rw-r--r--ansible/roles/packages/tasks/main.yml1
3 files changed, 8 insertions, 3 deletions
diff --git a/ansible/all.yml b/ansible/all.yml
index 4acd889..a28142a 100644
--- a/ansible/all.yml
+++ b/ansible/all.yml
@@ -3,7 +3,9 @@
roles:
- lusers
- superusers
- - packages
+ - role: packages
+ tags: packages
+ become: yes
- trygvis-base
# - ufw
diff --git a/ansible/group_vars/all/packages.yml b/ansible/group_vars/all/packages.yml
index be0386f..27e6c66 100644
--- a/ansible/group_vars/all/packages.yml
+++ b/ansible/group_vars/all/packages.yml
@@ -1,4 +1,4 @@
-packages_packages: "{{ packages__unix }} + {{ packages__misc }}"
+packages_packages: "{{ packages__unix }} + {{ packages__misc }} + {{ packages__dev }} + []"
packages__unix:
- pwgen
@@ -10,5 +10,9 @@ packages__unix:
- less
- ack
+packages__dev:
+ - pkg-config
+ - libtool
+
packages__misc:
- zip
diff --git a/ansible/roles/packages/tasks/main.yml b/ansible/roles/packages/tasks/main.yml
index 711aa9a..e23bcc7 100644
--- a/ansible/roles/packages/tasks/main.yml
+++ b/ansible/roles/packages/tasks/main.yml
@@ -1,6 +1,5 @@
---
- name: configure debian repositories
- tags: packages
notify: update apt cache
copy:
dest: /etc/apt/sources.list