forked from ISTI-ansible-roles/ansible-roles
Add tasks to install nscd if needed.
This commit is contained in:
parent
60dd80953b
commit
4f0d6b582e
|
@ -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
|
||||
|
||||
|
|
|
@ -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' ]
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue