9 lines
227 B
YAML
9 lines
227 B
YAML
---
|
|
- name: build hosts file
|
|
lineinfile:
|
|
dest: /etc/hosts
|
|
insertafter: EOF
|
|
line: '{{ item }}'
|
|
state: present
|
|
with_items:
|
|
- '{{ ansible_default_ipv4.address }} {{ ansible_hostname }} {{ ansible_fqdn }}' |