blob: 69a071312e326dbbc50503a6495e5b21db999b42 (
plain)
1
2
3
4
5
6
7
8
9
|
- name: Prepare POSIX hosts file
hosts: all
gather_facts: no
tasks:
- name: Add container hostname(s) to hosts file
blockinfile:
path: /etc/hosts
block: "{{ '\n'.join(hosts_entries) }}"
unsafe_writes: yes
|