From 2f58edd3ec33a1dfb0eceeedcd30220f6dfbe3d9 Mon Sep 17 00:00:00 2001 From: David Reuss Date: Thu, 19 May 2016 21:21:02 +0200 Subject: [PATCH] enable fan services --- roles/network_plugin/fan/tasks/dhcp-daemon.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/roles/network_plugin/fan/tasks/dhcp-daemon.yml b/roles/network_plugin/fan/tasks/dhcp-daemon.yml index d49edbe42..f9995b622 100644 --- a/roles/network_plugin/fan/tasks/dhcp-daemon.yml +++ b/roles/network_plugin/fan/tasks/dhcp-daemon.yml @@ -5,13 +5,18 @@ src: "cni-dhcp.service.j2" dest: "/etc/systemd/system/cni-dhcp.service" when: "{{ ansible_service_mgr == 'systemd' }}" - notify: - - "reload systemd" - name: "Fan | setup dhcp daemon socket activation" template: src: "cni-dhcp.socket.j2" dest: "/etc/systemd/system/cni-dhcp.socket" when: "{{ ansible_service_mgr == 'systemd' }}" - notify: - - "reload systemd" + +- name: "Fan | enable services" + service: + name: "{{ item }}" + state: "reloaded" + enabled: true + with_items: + - "cni-dhcp.socket" + - "cni-dhcp.service"