arch-install/roles/macos_01_hostname/tasks/main.yml
Ariejan de Vroom 30dd377699
Some checks failed
Lint / Lint (3.10) (push) Failing after 20s
Lint / Lint (3.11) (push) Failing after 18s
Update /etc/hosts on macos
2024-08-04 11:39:46 +02:00

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