15 lines
417 B
YAML
15 lines
417 B
YAML
- name: Setup systemd
|
|
when: 'is_docker is not true'
|
|
block:
|
|
- name: Install systemd files
|
|
ansible.builtin.template:
|
|
src: '{{ item.src }}'
|
|
dest: '/{{ item.path }}'
|
|
with_community.general.filetree: '../templates/systemd/'
|
|
when: item.state == 'file'
|
|
|
|
- name: Enable service
|
|
ansible.builtin.systemd:
|
|
name: zabov
|
|
state: started
|
|
daemon_reload: yes
|