configurations-ansible/roles/zoreide/tasks/install_systemd_service.yml

16 lines
419 B
YAML
Raw Permalink Normal View History

2023-12-31 11:12:50 +01:00
- 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: zoreide
state: started
daemon_reload: yes