This repository has been archived on 2020-11-04. You can view files and clone it, but cannot push or open issues or pull requests.
2017-08-17 15:45:11 +02:00
|
|
|
---
|
|
|
|
# tasks file for packages
|
|
|
|
|
|
|
|
# Packages
|
2017-08-18 11:10:36 +02:00
|
|
|
- name: INSTALL useful tools packages
|
2017-08-17 15:45:11 +02:00
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: '{{ apt_tools_state }}'
|
|
|
|
with_items:
|
|
|
|
- '{{ apt_tools_list }}'
|
|
|
|
when: apt_tools_manage
|
|
|
|
|
2017-08-18 11:10:36 +02:00
|
|
|
- name: INSTALL unattended-upgrades
|
|
|
|
apt:
|
|
|
|
pkg: "unattended-upgrades"
|
|
|
|
state: "{{ 'latest' if apt_unattended_upgrades else 'absent' }}"
|
2017-08-18 14:49:43 +02:00
|
|
|
update_cache: yes
|
2017-08-18 11:10:36 +02:00
|
|
|
when: apt_unattended_upgrades
|
|
|
|
|
|
|
|
- name: INSTALL purge useless packages
|
2017-08-17 15:45:11 +02:00
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: '{{ apt_old_pkg_state }}'
|
|
|
|
with_items:
|
|
|
|
- '{{ apt_old_pkg_list }}'
|
|
|
|
when: apt_old_pkg_manage
|