This repository has been archived on 2024-01-01. You can view files and clone it, but cannot push or open issues or pull requests.
ansible/roles/shell/tasks/gopher.yml

33 lines
674 B
YAML

# Configure gopher units
---
- name: Add githook local script
copy:
src: ../files/gopher-run
dest: /usr/local/bin/gopher-run
owner: root
mode: 0755
- name: Add githook systemd path unit
copy:
src: ../files/gopher-run.path
dest: /etc/systemd/system/gopher-run.path
owner: root
group: root
mode: 0644
- name: Add githook system service unit
copy:
src: ../files/gopher-run.service
dest: /etc/systemd/system/gopher-run.service
owner: root
group: root
mode: 0644
- name: Enabling gopher-pull units
systemd:
name: "{{ item }}"
enabled: yes
with_items:
- 'gopher-run.path'
- 'gopher-run.service'