enable fan services

This commit is contained in:
David Reuss 2016-05-19 21:21:02 +02:00
parent 469d0977a2
commit 2f58edd3ec

View file

@ -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"