Update /etc/hosts on macos
Some checks failed
Lint / Lint (3.10) (push) Failing after 20s
Lint / Lint (3.11) (push) Failing after 18s

This commit is contained in:
Ariejan de Vroom 2024-08-04 11:39:46 +02:00
parent 3c091ca39b
commit 30dd377699
Signed by: ariejan
GPG Key ID: AD739154F713697B

View File

@ -2,4 +2,13 @@
- name: Set hostname
ansible.builtin.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