Separate service and config handlers

This commit is contained in:
Alex 2020-06-05 15:42:33 +02:00
parent a8694d4ad8
commit 7673b68118
Signed by: caskd
GPG Key ID: F92BA85F61F4C173
1 changed files with 12 additions and 1 deletions

View File

@ -9,7 +9,6 @@
- { src: 'build.conf', dest: '{{ inspircd.paths.build }}/.configure/cache.cfg', mode: '655' }
- { src: 'inspircd.conf', dest: '{{ inspircd.paths.config }}/conf/inspircd.conf', mode: '600' }
- { src: 'main.motd', dest: '{{ inspircd.paths.config }}/conf/main.motd', mode: '655' }
- { src: 'inspircd.service', dest: '/etc/systemd/system/inspircd.service', mode: '655' }
template:
follow: yes
src: '{{ item.src }}.j2'
@ -20,6 +19,18 @@
- configs
- vault
- inspircd
- name: Copy service file
loop:
- { src: 'inspircd.service', dest: '/etc/systemd/system/inspircd.service', mode: '655' }
template:
follow: yes
src: '{{ item.src }}.j2'
dest: '{{ item.dest }}'
mode: '{{ item.mode }}'
notify: Restart services
tags:
- systemd
- inspircd
- name: Build inspricd
make:
chdir: '{{ inspircd.paths.build }}'