Separate service and config handlers
This commit is contained in:
parent
a8694d4ad8
commit
7673b68118
|
@ -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 }}'
|
||||
|
|
Reference in New Issue