Skip to content
Snippets Groups Projects
Commit 34b3b18f authored by Robin Sonnabend's avatar Robin Sonnabend
Browse files

Install dbus before setting the hostname, since hostnamectl is used by the hostname module ...

parent 02ea49f2
No related branches found
No related tags found
No related merge requests found
......@@ -7,6 +7,14 @@
- dns
- config
- name: ensure dbus is installed, since hostnamectl needs this crap
apt: name=dbus state=present
tags:
- packages
- dns
- network
- config
- name: ensure the hostname is not a fqdn for non-hypervisors
hostname: name="{{ inventory_hostname }}"
when: not (inventory_hostname in groups['vm-hosts']) and not (inventory_hostname in groups['vm-master'])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment