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"
|
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"
|
||||||
|
|
Loading…
Reference in a new issue