diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-11 23:31:48 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2019-01-11 23:31:48 +0100 |
commit | f520901531b30de93217b85980fea920d8e1b18a (patch) | |
tree | a917355352e43404323601da9c6ddd0e76aec718 | |
parent | 2f28493840d9a89de3bb14612d7a8cb762c1980f (diff) | |
download | infra-f520901531b30de93217b85980fea920d8e1b18a.tar.gz infra-f520901531b30de93217b85980fea920d8e1b18a.tar.bz2 infra-f520901531b30de93217b85980fea920d8e1b18a.tar.xz infra-f520901531b30de93217b85980fea920d8e1b18a.zip |
packages: adding tags and become.
-rw-r--r-- | ansible/all.yml | 4 | ||||
-rw-r--r-- | ansible/group_vars/all/packages.yml | 6 | ||||
-rw-r--r-- | ansible/roles/packages/tasks/main.yml | 1 |
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 |