Update /etc/hosts on macos
This commit is contained in:
parent
3c091ca39b
commit
30dd377699
|
@ -2,4 +2,13 @@
|
||||||
- name: Set hostname
|
- name: Set hostname
|
||||||
ansible.builtin.hostname:
|
ansible.builtin.hostname:
|
||||||
name: "{{ macos.hostname }}"
|
name: "{{ macos.hostname }}"
|
||||||
use: macos
|
use: macos
|
||||||
|
|
||||||
|
- 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