diff --git a/roles/2-common/tasks/udev.yml b/roles/2-common/tasks/udev.yml index 8bd5f7621..f377973fd 100644 --- a/roles/2-common/tasks/udev.yml +++ b/roles/2-common/tasks/udev.yml @@ -18,9 +18,12 @@ state=present when: udev_unit.stat.exists is defined and udev_unit.stat.exists +# ubuntu 16.04 comes with ansible 2.0.0.2 -- no systemd module - name: Ask systemd to recognize the changes - systemd: name=systemd-udevd - daemon-reload=True - state=restarted + shell: systemctl daemon-reload + when: udev_unit.stat.exists is defined and udev_unit.stat.exists + +- name: restart so systemd recognizes the changes + shell: systemctl restart systemd-udevd.service when: udev_unit.stat.exists is defined and udev_unit.stat.exists