Fix fas_client task to set nsswitch.conf. Add hosts task.
This commit is contained in:
parent
4f84817cfa
commit
70308db00b
6 changed files with 94 additions and 6 deletions
|
@ -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
20
tasks/hosts.yml
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue