14 lines
285 B
YAML
14 lines
285 B
YAML
---
|
|
- name: Set hostname
|
|
ansible.builtin.hostname:
|
|
name: "{{ macos.hostname }}"
|
|
use: macos
|
|
|
|
- name: Add entries to /etc/hosts
|
|
ansible.builtin.lineinfile:
|
|
path: /etc/hosts
|
|
line: "{{ item }}"
|
|
state: present
|
|
with_items:
|
|
- "{{ etc_hosts }}"
|
|
become: true |