From 1ead6e032e51ff4299268e858a739701073f6813 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Tue, 26 Sep 2017 21:34:49 -0700 Subject: [PATCH 1/2] ansible package regression --- roles/2-common/tasks/udev.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/roles/2-common/tasks/udev.yml b/roles/2-common/tasks/udev.yml index 8bd5f7621..5f52e9d83 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-udev.service when: udev_unit.stat.exists is defined and udev_unit.stat.exists From 153f1792cb39d2007907520fcc2dc6d2816bf3a4 Mon Sep 17 00:00:00 2001 From: George Hunt Date: Wed, 27 Sep 2017 07:56:34 -0700 Subject: [PATCH 2/2] service typo --- roles/2-common/tasks/udev.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/2-common/tasks/udev.yml b/roles/2-common/tasks/udev.yml index 5f52e9d83..f377973fd 100644 --- a/roles/2-common/tasks/udev.yml +++ b/roles/2-common/tasks/udev.yml @@ -24,6 +24,6 @@ when: udev_unit.stat.exists is defined and udev_unit.stat.exists - name: restart so systemd recognizes the changes - shell: systemctl restart systemd-udev.service + shell: systemctl restart systemd-udevd.service when: udev_unit.stat.exists is defined and udev_unit.stat.exists