Browse Source

Separate service and config handlers

master
Alex 2 years ago
parent
commit
7673b68118
Signed by: caskd GPG Key ID: F92BA85F61F4C173
  1. 13
      tasks/main.yml

13
tasks/main.yml

@ -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 }}'