Last version of clean_servers.yml
parent
82732396af
commit
adbe58b094
|
@ -0,0 +1,3 @@
|
|||
// Pre-configure all packages with debconf before they are installed.
|
||||
// If you don't like it, comment it out.
|
||||
DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt || true";};
|
|
@ -3,7 +3,7 @@
|
|||
# This is a special playbook to clean old stuff from BCFG2
|
||||
# it will disapear when BCFG2 will disapear
|
||||
# `apt-mark showmanual` is a good start
|
||||
- hosts: server,test_vm
|
||||
- hosts: server
|
||||
tasks:
|
||||
- name: Clean up unused packages
|
||||
apt:
|
||||
|
@ -67,7 +67,6 @@
|
|||
state: absent
|
||||
loop:
|
||||
- /etc/apt/apt.conf.d/01aptitude
|
||||
- /etc/apt/apt.conf.d/70debconf
|
||||
- /etc/apt-dater-host.conf
|
||||
- /etc/bcfg2.conf
|
||||
- /etc/bcfg2.conf.ucf-dist
|
||||
|
@ -93,19 +92,31 @@
|
|||
- /etc/default/bcfg2.ucf-dist
|
||||
- /etc/icinga2
|
||||
- /etc/init.d/bcfg2
|
||||
- /etc/ldap/ldap.conf
|
||||
- /etc/letsencrypt/conf.d/localhost.ini
|
||||
- /etc/monit
|
||||
- /etc/munin
|
||||
- /etc/nagios
|
||||
- /etc/nagios-plugins
|
||||
- /etc/nginx/sites-available/status
|
||||
- /etc/nginx/sites-enabled/status
|
||||
#- /etc/nginx/sites-available/status
|
||||
#- /etc/nginx/sites-enabled/status
|
||||
- /etc/nss-ldapd.conf
|
||||
- /etc/nut
|
||||
- /etc/pnp4nagios
|
||||
- /etc/sudoers.d/apt-dater-host
|
||||
- /var/local/aptdater
|
||||
|
||||
- name: Copy Debian ldap.conf
|
||||
template:
|
||||
src: ldap.conf
|
||||
dest: /etc/ldap/ldap.conf
|
||||
mode: 0644
|
||||
|
||||
- name: Copy Debian 70debconf
|
||||
template:
|
||||
src: 70debconf
|
||||
dest: /etc/apt/apt.conf.d/70debconf
|
||||
mode: 0644
|
||||
|
||||
# - name: Upgrade
|
||||
# apt:
|
||||
# upgrade: dist
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
#
|
||||
# LDAP Defaults
|
||||
#
|
||||
|
||||
# See ldap.conf(5) for details
|
||||
# This file should be world readable but not world writable.
|
||||
|
||||
#BASE dc=example,dc=com
|
||||
#URI ldap://ldap.example.com ldap://ldap-master.example.com:666
|
||||
|
||||
#SIZELIMIT 12
|
||||
#TIMELIMIT 15
|
||||
#DEREF never
|
||||
|
||||
# TLS certificates (needed for GnuTLS)
|
||||
TLS_CACERT /etc/ssl/certs/ca-certificates.crt
|
||||
|
Loading…
Reference in New Issue