Fix fas_client task to set nsswitch.conf. Add hosts task.

This commit is contained in:
Kevin Fenzi 2013-04-17 21:52:28 +00:00
parent 4f84817cfa
commit 70308db00b
6 changed files with 94 additions and 6 deletions

View file

@ -22,6 +22,12 @@
tags:
- packages
#
# setup /etc/nsswitch.conf to use nssdb
#
- name: setup /etc/nsswitch.conf for client use
action: copy src=$files/fas-client/nsswitch.conf dest=/etc/nsswitch.conf owner=root mode=644
#
# fasClients needs a valid /etc/fas.conf.
# There's vars used in this template:

20
tasks/hosts.yml Normal file
View file

@ -0,0 +1,20 @@
---
#
# This task sets up /etc/hosts on a machine.
#
# This should only be used in rare cases
#
#
# This will move a /etc/hosts in place if it's setup in files for that host/domain
# Note that if it's not set it will just skip this play and do nothing.
#
- name: setup /etc/hosts for client use
action: copy src=$item dest=/etc/hosts
with_first_found:
- $files/hosts/${ansible_fqdn}-hosts
- $files/hosts/${ansible_hostname}-hosts
- $files/hosts/${ansible_domain}-hosts
skip: true
tags:
- config