Add tasks to install nscd if needed.

This commit is contained in:
Andrea Dell'Amico 2018-04-19 17:48:06 +02:00
parent 60dd80953b
commit 4f0d6b582e
3 changed files with 18 additions and 0 deletions

View File

@ -101,6 +101,9 @@ pki_subdirs:
# Install our /etc/resolv.conf
install_resolvconf: True
# Install nscd if requested
install_nscd: False
# Install and configure munin
configure_munin: False

View File

@ -0,0 +1,13 @@
---
- block:
- name: Install the nscd service to work around dns timeouts
become_user: root
apt: pkg=nscd state=present update_cache=yes cache_valid_time=1800
- name: Ensure thad the nscd service is enabled and running
become_user: root
service: name=nscd state=restarted enabled=yes
when: install_nscd
tags: [ 'nscd' ]

View File

@ -5,6 +5,8 @@
- import_tasks: dist-upgrade.yml
when: dist_upgrade
- import_tasks: packages.yml
- import_tasks: nscd.yml
when: install_nscd
- import_tasks: ntp.yml
- import_tasks: remove-unneeded-pkgs.yml
- import_tasks: denyhost.yml