diff --git a/tasks/hosts.yml b/tasks/hosts.yml index c8970d54fe..418d9addeb 100644 --- a/tasks/hosts.yml +++ b/tasks/hosts.yml @@ -12,8 +12,7 @@ - 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 + - files: $files/hosts/{{ ansible_fqdn }}-hosts $files/hosts/{{ ansible_hostname }}-hosts $files/hosts/{{ ansible_domain }}-hosts $files/hosts/{{ host_group }}-hosts # skip: true - ignore_errors: true tags: - config