main.yml 692 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
12
13
14
15
- 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

- name: ading users to phrik group
  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

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

- 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