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" src: "cni-dhcp.service.j2"
dest: "/etc/systemd/system/cni-dhcp.service" dest: "/etc/systemd/system/cni-dhcp.service"
when: "{{ ansible_service_mgr == 'systemd' }}" when: "{{ ansible_service_mgr == 'systemd' }}"
notify:
- "reload systemd"
- name: "Fan | setup dhcp daemon socket activation" - name: "Fan | setup dhcp daemon socket activation"
template: template:
src: "cni-dhcp.socket.j2" src: "cni-dhcp.socket.j2"
dest: "/etc/systemd/system/cni-dhcp.socket" dest: "/etc/systemd/system/cni-dhcp.socket"
when: "{{ ansible_service_mgr == 'systemd' }}" 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"