enable fan services
This commit is contained in:
parent
469d0977a2
commit
2f58edd3ec
1 changed files with 9 additions and 4 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue