add hosts file
This commit is contained in:
parent
38c1728c04
commit
32d60e44ba
9
hosts.yml
Normal file
9
hosts.yml
Normal file
@ -0,0 +1,9 @@
|
||||
---
|
||||
- name: build hosts file
|
||||
lineinfile:
|
||||
dest: /etc/hosts
|
||||
insertafter: EOF
|
||||
line: '{{ item }}'
|
||||
state: present
|
||||
with_items:
|
||||
- '{{ ansible_default_ipv4.address }} {{ ansible_hostname }} {{ ansible_fqdn }}'
|
||||
Loading…
x
Reference in New Issue
Block a user