blob: 1549ed6bdc02a4426595b61cdb35315723577109 (
plain)
1
2
3
4
5
6
7
8
9
10
|
- name: Restore POSIX hosts file
hosts: all
gather_facts: no
tasks:
- name: Remove container hostname(s) from hosts file
blockinfile:
path: /etc/hosts
block: "{{ '\n'.join(hosts_entries) }}"
unsafe_writes: yes
state: absent
|