main.yml 864 Bytes
Newer Older
1
2
---

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

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
30
31
32
33

- name: install phrik systemd service
  copy: src=phrik.service dest=/etc/systemd/system/phrik.service
  notify:
    - daemon reload

- name: start and enable phrik service
  service: name="phrik.service" enabled=yes state=started