Make 'ldap', 'kerberos' and 'nfs' hostname aliases.
This commit is contained in:
parent
9d9da31649
commit
7f49b191ac
4 changed files with 25 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
- fail: msg="The machine's domain must not be empty."
|
||||
when: ansible_domain | length == 0
|
||||
|
||||
- name: check if there are installing
|
||||
- name: check if we are installing
|
||||
stat: path=/etc/exports
|
||||
register: exports
|
||||
|
||||
|
@ -29,6 +29,13 @@
|
|||
{{ export_root }}/home/ *(sec=krb5p,rw,no_subtree_check)
|
||||
notify: "restart nfs-kernel-server"
|
||||
|
||||
- name: "make 'nfs' an alias hostname resolvable from the LAN"
|
||||
replace:
|
||||
path: /etc/hosts
|
||||
regexp: "^({{ ipaddr_lan }}\\s.+)$"
|
||||
replace: '\1 nfs'
|
||||
when: not exports.stat.exists
|
||||
|
||||
- name: check if there is a local kadmin
|
||||
stat: path=/usr/sbin/kadmin.local
|
||||
register: kadmin
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue