This repository has been archived on 2020-12-09. You can view files and clone it, but cannot push or open issues or pull requests.
2017-08-01 11:08:16 +02:00
|
|
|
---
|
|
|
|
# tasks file for pkg_utils
|
|
|
|
|
|
|
|
- name: Load specific OS vars
|
|
|
|
include_vars: "{{ item }}"
|
|
|
|
with_first_found:
|
|
|
|
- "{{ ansible_distribution|lower }}-{{ ansible_distribution_version }}.yml"
|
|
|
|
- "{{ ansible_distribution|lower }}.yml"
|
|
|
|
- "{{ ansible_os_family|lower }}.yml"
|
|
|
|
|
|
|
|
# packages {{{
|
|
|
|
- name: Ensure useful packages
|
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: '{{ pkg_utils_new_state }}'
|
|
|
|
with_items:
|
|
|
|
- '{{ pkg_utils_new_list }}'
|
|
|
|
|
2017-08-01 11:26:14 +02:00
|
|
|
- name: Remove useless packages
|
|
|
|
apt:
|
|
|
|
name: '{{ item }}'
|
|
|
|
state: '{{ pkg_utils_old_state }}'
|
|
|
|
with_items:
|
|
|
|
- '{{ pkg_utils_old_list }}'
|
|
|
|
when: pkg_utils_old_manage
|
|
|
|
|
2017-08-01 11:08:16 +02:00
|
|
|
# }}}
|