ansible/roles/services/tasks/siahsd.yaml

39 lines
746 B
YAML

---
# TODO: Install and build
- name: Create directories
ansible.builtin.file:
path: "{{ item }}"
state: directory
owner: siahsd
group: nogroup
mode: "0750"
with_items:
- /var/log/siahsd
- /var/lib/siahsd
- name: Install config file
ansible.builtin.template:
src: siahsd.conf
dest: /etc/siahsd.conf
owner: root
group: root
mode: "0644"
notify: Restart siahsd
- name: Install service file
ansible.builtin.template:
src: siahsd.service
dest: /etc/systemd/system/siahsd.service
owner: root
group: root
mode: "0644"
notify: Restart siahsd
- name: Start siahsd
ansible.builtin.systemd:
name: siahsd
state: started
enabled: true
daemon_reload: true