Adding gopher systemd units for sync

This commit is contained in:
Ubergeek 2019-03-22 21:53:05 +00:00
parent d0de56a5ea
commit dda65471d9
2 changed files with 34 additions and 0 deletions

View File

@ -0,0 +1,33 @@
# 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
state: started
with_items:
- 'gopher-run.path'
- 'gopher-run.service'

View File

@ -12,3 +12,4 @@
- include: dovecot.yml
- include: postfix.yml
- include: iris.yml
- include: gopher.yml