summaryrefslogtreecommitdiff
path: root/roles/install_tayga/tasks/main.yml
blob: 7d4c6a5f4678f143436c69f1d99e3623edc8338f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
---
- name: install tayga
  pacman:
      name: tayga
      state: present

- name: tayga.conf
  template:
      src: tayga.conf.j2
      dest: /etc/tayga.conf
      mode: 0644
  notify: restart tayga

- name: create systemd override folder
  ansible.builtin.file:
    path: /etc/systemd/system/tayga.service.d
    state: directory

- name: systemd override.conf
  template:
      src: systemd_override.conf.j2
      dest: /etc/systemd/system/tayga.service.d/override.conf
      mode: 0644
  notify: restart tayga

- name: start and enable tayga service
  systemd:
      name: tayga.service
      enabled: yes
      state: started