1
1
Fork 0
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2024-05-05 12:56:03 +02:00
infrastructure/roles/phrik/tasks/main.yml
Kristian Klausen 4112bdf9fd Make ansible-lint happy
yaml: truthy value should be one of [false, true] (truthy)
yaml: wrong indentation: expected 4 but found 2 (indentation)
yaml: too few spaces before comment (comments)
yaml: missing starting space in comment (comments)
yaml: too many blank lines (1 > 0) (empty-lines)
yaml: too many spaces after colon (colons)
yaml: comment not indented like content (comments-indentation)
yaml: no new line character at the end of file (new-line-at-end-of-file)
load-failure: Failed to load or parse file
parser-error: couldn't resolve module/action 'hosts'. This often indicates a misspelling, missing collection, or incorrect module path.
2021-02-14 14:22:05 +01:00

42 lines
1.2 KiB
YAML

---
- name: install phrik utilities
pacman: name=git,pkgfile state=present
- 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: adding users to phrik group
user: groups=phrik name="{{ item }}" append=yes
with_items:
- demize
tags: ['archusers']
- name: adding users to systemd-journal group for monitoring
user: groups=systemd-journal name="{{ item }}" append=yes
with_items:
- demize
tags: ['archusers']
- name: install phrik sudoers config
copy: src=sudoers dest=/etc/sudoers.d/phrik owner=root group=root mode=0440
- name: install polkit rule for restarting phrik
copy: src=20-manage-phrik.rules dest=/etc/polkit-1/rules.d/20-manage-phrik.rules owner=root group=root mode=0644
- name: install phrik systemd service
copy: src=phrik.service dest=/etc/systemd/system/phrik.service owner=root group=root mode=0644
- name: start and enable pkgfile and phrikservice
systemd:
name: "{{ item }}"
enabled: true
state: started
daemon_reload: true
with_items:
- pkgfile-update.timer
- phrik.service