forked from ISTI-ansible-roles/ansible-roles
library/roles/ubuntu-deb-general: Fix the apt parameters. The old ones are going to be deprecated.
This commit is contained in:
parent
bc2ac5b7bf
commit
60dd80953b
|
@ -5,7 +5,7 @@
|
||||||
use_apt_proxy: False
|
use_apt_proxy: False
|
||||||
dist_upgrade: False
|
dist_upgrade: False
|
||||||
|
|
||||||
pkg_state: installed
|
pkg_state: present
|
||||||
common_packages:
|
common_packages:
|
||||||
- acl
|
- acl
|
||||||
- zile
|
- zile
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install denyhosts on debian <=7 and ubuntu <= 12.04
|
- name: install denyhosts on debian <=7 and ubuntu <= 12.04
|
||||||
apt: pkg={{ item }} state=installed
|
apt: pkg={{ item }} state=present
|
||||||
with_items:
|
with_items:
|
||||||
- denyhosts
|
- denyhosts
|
||||||
tags: denyhosts
|
tags: denyhosts
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
---
|
---
|
||||||
- name: install munin-node
|
- name: install munin-node
|
||||||
apt: pkg=munin-node state=installed
|
apt: pkg=munin-node state=present
|
||||||
when: has_apt
|
when: has_apt
|
||||||
tags:
|
tags:
|
||||||
- packages
|
- packages
|
||||||
|
|
|
@ -1,11 +1,11 @@
|
||||||
---
|
---
|
||||||
- name: Install the basic packages
|
- 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 }}'
|
with_items: '{{ default_python_packages }}'
|
||||||
tags: packages
|
tags: packages
|
||||||
|
|
||||||
- name: Install software-properties-common if needed
|
- 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
|
when: is_ubuntu
|
||||||
tags: packages
|
tags: packages
|
||||||
|
|
||||||
|
|
|
@ -1,18 +1,18 @@
|
||||||
---
|
---
|
||||||
- name: Remove unneeded base packages
|
- name: Remove unneeded base packages
|
||||||
apt: pkg={{ item }} state=removed
|
apt: pkg={{ item }} state=absent
|
||||||
with_items: '{{ cleanup_base_packages }}'
|
with_items: '{{ cleanup_base_packages }}'
|
||||||
when: cleanup_base_packages
|
when: cleanup_base_packages
|
||||||
tags: [ 'packages', 'pkg_cleanup' ]
|
tags: [ 'packages', 'pkg_cleanup' ]
|
||||||
|
|
||||||
- name: Remove unneeded X packages
|
- name: Remove unneeded X packages
|
||||||
apt: pkg={{ item }} state=removed
|
apt: pkg={{ item }} state=absent
|
||||||
with_items: '{{ x_base_packages_to_remove }}'
|
with_items: '{{ x_base_packages_to_remove }}'
|
||||||
when: cleanup_x_base_packages
|
when: cleanup_x_base_packages
|
||||||
tags: [ 'packages', 'pkg_cleanup' ]
|
tags: [ 'packages', 'pkg_cleanup' ]
|
||||||
|
|
||||||
- name: Remove the nfs packages
|
- name: Remove the nfs packages
|
||||||
apt: pkg={{ item }} state=removed
|
apt: pkg={{ item }} state=absent
|
||||||
with_items: '{{ nfs_packages }}'
|
with_items: '{{ nfs_packages }}'
|
||||||
when:
|
when:
|
||||||
- is_not_precise
|
- is_not_precise
|
||||||
|
@ -20,13 +20,13 @@
|
||||||
tags: [ 'packages', 'pkg_cleanup' ]
|
tags: [ 'packages', 'pkg_cleanup' ]
|
||||||
|
|
||||||
- name: Remove rpcbind packages
|
- name: Remove rpcbind packages
|
||||||
apt: pkg={{ item }} state=removed
|
apt: pkg={{ item }} state=absent
|
||||||
with_items: '{{ rpcbind_packages }}'
|
with_items: '{{ rpcbind_packages }}'
|
||||||
when: cleanup_rpcbind_packages
|
when: cleanup_rpcbind_packages
|
||||||
tags: [ 'packages', 'pkg_cleanup' ]
|
tags: [ 'packages', 'pkg_cleanup' ]
|
||||||
|
|
||||||
- name: Remove the exim packages
|
- name: Remove the exim packages
|
||||||
apt: name={{ item }} state=removed
|
apt: name={{ item }} state=absent
|
||||||
with_items: '{{ exim_email_server_pkgs }}'
|
with_items: '{{ exim_email_server_pkgs }}'
|
||||||
when: cleanup_exim_email_server
|
when: cleanup_exim_email_server
|
||||||
tags: [ 'packages', 'pkg_cleanup', 'exim' ]
|
tags: [ 'packages', 'pkg_cleanup', 'exim' ]
|
||||||
|
|
Loading…
Reference in New Issue