Skip to content

Commit

Permalink
refacto: fix hosts file
Browse files Browse the repository at this point in the history
Signed-off-by: ThysTips <[email protected]>
  • Loading branch information
thystips committed Oct 23, 2024
1 parent b1fa32f commit 3b8d371
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/hosts_file/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,9 @@
line: "{{ item.ip }} {{ item.entry }}"
loop: "{{ hosts_file_entries }}"
tags: hosts_file

- name: Remove line from /etc/hosts file
ansible.builtin.lineinfile:
path: /etc/hosts
state: absent
regexp: '^127.0.1.1'

0 comments on commit 3b8d371

Please sign in to comment.