Move hosts to a role and put it before fas_client so initial runs can find admin.

This commit is contained in:
Kevin Fenzi 2014-06-23 00:49:31 +00:00
parent 7c51d2e497
commit 800c03d37e
101 changed files with 47 additions and 47 deletions

View file

@ -1,22 +0,0 @@
---
#
# 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 some clients
action: copy src={{ item }} dest=/etc/hosts
with_first_found:
- files:
- "{{ files }}/hosts/{{ ansible_fqdn }}-hosts"
- "{{ files }}/hosts/{{ ansible_hostname }}-hosts"
- "{{ files }}/hosts/{{ ansible_domain }}-hosts"
- "{{ files }}/hosts/{{ host_group }}-hosts"
skip: true
tags:
- config