main.yml 1.09 KB
Newer Older
1
2
---

Jelle van der Waa's avatar
Jelle van der Waa committed
3
- name: install phrik utilities
4
  pacman: name=git,pkgfile state=present
Jelle van der Waa's avatar
Jelle van der Waa committed
5

6
7
8
9
10
11
- name: add phrik group
  group: name=phrik gid=1100 state=present

- name: add phrik user
  user: name=phrik group=phrik uid=1100 comment="phrik IRC bot" createhome=yes

12
- name: adding users to phrik group
13
14
15
  user: groups=phrik name="{{ item }}" append=yes
  with_items:
    - demize
16
  tags: ['archusers']
Jelle van der Waa's avatar
Jelle van der Waa committed
17

18
19
20
21
22
23
- name: adding users to systemd-journal group for monitoring
  user: groups=systemd-journal name="{{ item }}" append=yes
  with_items:
    - demize
  tags: ['archusers']

Jelle van der Waa's avatar
Jelle van der Waa committed
24
25
- name: install phrik sudoers config
  copy: src=sudoers dest=/etc/sudoers.d/phrik
Jelle van der Waa's avatar
Jelle van der Waa committed
26

27
28
29
- name: install polkit rule for restarting phrik
  copy: src=20-manage-phrik.rules dest=/etc/polkit-1/rules.d/20-manage-phrik.rules

Jelle van der Waa's avatar
Jelle van der Waa committed
30
31
32
33
34
- name: install phrik systemd service
  copy: src=phrik.service dest=/etc/systemd/system/phrik.service
  notify:
    - daemon reload

35
36
37
- name: start and enable pkgfile service
  service: name="pkgfile-update.service" enabled=yes state=started

Jelle van der Waa's avatar
Jelle van der Waa committed
38
39
- name: start and enable phrik service
  service: name="phrik.service" enabled=yes state=started