1
1
mirror of https://gitlab.archlinux.org/archlinux/infrastructure.git synced 2025-01-18 08:06:16 +01:00
infrastructure/roles/sogrep/tasks/main.yml
Frederik Schwan a4a4f3e76c
fix E303 'Using command rather than module'
also use systemd instead of service module
2020-06-17 02:43:12 +02:00

26 lines
625 B
YAML

---
- name: install binutils
pacman: name=binutils state=present
- name: install createlinks script
copy: src=createlinks dest=/usr/local/bin/createlinks owner=root group=root mode=0755
- name: remove sogrep script (now part of devtools)
file:
path: /usr/local/bin/sogrep
state: absent
- name: install sogrep units
copy: src={{ item }} dest=/etc/systemd/system/{{ item }} owner=root group=root mode=0644
with_items:
- createlinks.timer
- createlinks.service
- name: start and enable sogrep units
systemd:
name: createlinks.timer
enabled: yes
state: started
daemon_reload: yes