Update /etc/hosts entries
This commit is contained in:
parent
cb4c6ab4ac
commit
426c49a197
|
@ -8,6 +8,10 @@ user:
|
|||
shell: /bin/zsh
|
||||
country: Netherlands
|
||||
|
||||
etc_hosts:
|
||||
- 10.0.2.100 treebeard
|
||||
- 10.0.2.55 mailcow
|
||||
|
||||
pacman:
|
||||
parallel_downloads: 10
|
||||
|
||||
|
|
|
@ -42,3 +42,12 @@
|
|||
update_cache: yes
|
||||
upgrade: yes
|
||||
become: true
|
||||
|
||||
- name: Add entries to /etc/hosts
|
||||
ansible.builtin.lineinfile:
|
||||
path: /etc/hosts
|
||||
line: "{{ item }}"
|
||||
state: present
|
||||
with_items:
|
||||
- "{{ etc_hosts }}"
|
||||
become: true
|
Loading…
Reference in New Issue
Block a user