cellinfo
/
ansible.apt
Archived
2
0
Fork 0
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.
ansible.apt/tasks/packages.yml

27 lines
605 B
YAML
Raw Normal View History

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' }}"
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_unwanted_pkg_state }}'
2017-08-17 15:45:11 +02:00
with_items:
- '{{ apt_unwanted_pkg_list }}'
when: apt_unwanted_pkg_manage