library/roles/ubuntu-deb-general: Fix the apt parameters. The old ones are going to be deprecated.

This commit is contained in:
Andrea Dell'Amico 2018-04-19 14:38:29 +02:00
parent bc2ac5b7bf
commit 60dd80953b
5 changed files with 10 additions and 10 deletions

View File

@ -5,7 +5,7 @@
use_apt_proxy: False
dist_upgrade: False
pkg_state: installed
pkg_state: present
common_packages:
- acl
- zile

View File

@ -1,6 +1,6 @@
---
- name: install denyhosts on debian <=7 and ubuntu <= 12.04
apt: pkg={{ item }} state=installed
apt: pkg={{ item }} state=present
with_items:
- denyhosts
tags: denyhosts

View File

@ -1,6 +1,6 @@
---
- name: install munin-node
apt: pkg=munin-node state=installed
apt: pkg=munin-node state=present
when: has_apt
tags:
- packages

View File

@ -1,11 +1,11 @@
---
- name: Install the basic packages
apt: pkg={{ item }} state=installed update_cache=yes cache_valid_time=1800
apt: pkg={{ item }} state=present update_cache=yes cache_valid_time=1800
with_items: '{{ default_python_packages }}'
tags: packages
- name: Install software-properties-common if needed
apt: pkg=software-properties-common state=installed update_cache=yes cache_valid_time=1800
apt: pkg=software-properties-common state=present update_cache=yes cache_valid_time=1800
when: is_ubuntu
tags: packages

View File

@ -1,18 +1,18 @@
---
- name: Remove unneeded base packages
apt: pkg={{ item }} state=removed
apt: pkg={{ item }} state=absent
with_items: '{{ cleanup_base_packages }}'
when: cleanup_base_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove unneeded X packages
apt: pkg={{ item }} state=removed
apt: pkg={{ item }} state=absent
with_items: '{{ x_base_packages_to_remove }}'
when: cleanup_x_base_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove the nfs packages
apt: pkg={{ item }} state=removed
apt: pkg={{ item }} state=absent
with_items: '{{ nfs_packages }}'
when:
- is_not_precise
@ -20,13 +20,13 @@
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove rpcbind packages
apt: pkg={{ item }} state=removed
apt: pkg={{ item }} state=absent
with_items: '{{ rpcbind_packages }}'
when: cleanup_rpcbind_packages
tags: [ 'packages', 'pkg_cleanup' ]
- name: Remove the exim packages
apt: name={{ item }} state=removed
apt: name={{ item }} state=absent
with_items: '{{ exim_email_server_pkgs }}'
when: cleanup_exim_email_server
tags: [ 'packages', 'pkg_cleanup', 'exim' ]