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

17 lines
455 B
YAML
Raw Normal View History

- name: Install systemd service for ipfs
become: true
become_user: root
block:
- name: Create and copy systemd files
ansible.builtin.template:
src: '{{ item.src }}'
dest: '/{{ item.path }}'
with_community.general.filetree: '../templates/systemd/'
when: item.state == 'file'
- name: Reload systemd services
ansible.builtin.systemd:
name: ipfs
state: started
daemon_reload: yes