Files
fedora-infra_ansible/tasks/hosts.yml
Pierre-Yves Chibon 8cb07e13e2 test another syntax
2013-09-20 18:12:12 +02:00

19 lines
560 B
YAML

---
#
# 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