base: Fix setting hostname on OpenBSD hosts
ansible.builtin.hostname seems to be broken on OpenBSD so set hostname directly using /etc/myname
This commit is contained in:
parent
e7458d14ff
commit
c5eafdbd04
3 changed files with 12 additions and 4 deletions
|
@ -28,10 +28,6 @@
|
|||
ansible.builtin.setup:
|
||||
filter: ansible_local
|
||||
|
||||
- name: set correct hostname
|
||||
ansible.builtin.hostname:
|
||||
name: "{{ inventory_hostname }}"
|
||||
|
||||
- name: include os specific tasks
|
||||
ansible.builtin.include_tasks:
|
||||
file: "{{ ansible_os_family }}.yml"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue