diff options
-rw-r--r-- | ansible/group_vars/all/packages.yml | 14 | ||||
-rw-r--r-- | ansible/roles/packages/tasks/main.yml | 6 |
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 |