From f520901531b30de93217b85980fea920d8e1b18a Mon Sep 17 00:00:00 2001 From: Trygve Laugstøl Date: Fri, 11 Jan 2019 23:31:48 +0100 Subject: packages: adding tags and become. --- ansible/all.yml | 4 +++- ansible/group_vars/all/packages.yml | 6 +++++- ansible/roles/packages/tasks/main.yml | 1 - 3 files changed, 8 insertions(+), 3 deletions(-) (limited to 'ansible') 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 -- cgit v1.2.3