diff --git a/tasks/main.yml b/tasks/main.yml index eee6311..3758c8a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,12 +1,12 @@ - name: install dbus (needed to set the hostname with systemd) apt: pkg: dbus - when: rootpath == "" + when: not rootpath - name: set hostname with systemd hostname: name: "{{ inventory_hostname_short }}" - when: rootpath == "" + when: not rootpath - name: customize vm image hostname copy: