This repository has been archived on 2020-06-05. You can view files and clone it, but cannot push or open issues or pull requests.
2020-05-24 12:46:47 +00:00
|
|
|
- name: Include sensitive info
|
|
|
|
include_vars:
|
|
|
|
dir: '{{ role_path }}/vault'
|
|
|
|
tags:
|
|
|
|
- vault
|
|
|
|
- inspircd
|
|
|
|
- name: Copy files
|
|
|
|
loop:
|
|
|
|
- { 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' }
|
|
|
|
template:
|
|
|
|
follow: yes
|
|
|
|
src: '{{ item.src }}.j2'
|
|
|
|
dest: '{{ item.dest }}'
|
|
|
|
mode: '{{ item.mode }}'
|
|
|
|
notify: Run service actions
|
|
|
|
tags:
|
|
|
|
- configs
|
|
|
|
- vault
|
|
|
|
- inspircd
|
2020-06-05 13:42:33 +00:00
|
|
|
- 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
|
2020-05-24 12:46:47 +00:00
|
|
|
- name: Build inspricd
|
|
|
|
make:
|
|
|
|
chdir: '{{ inspircd.paths.build }}'
|
|
|
|
target: 'install'
|
|
|
|
tags:
|
|
|
|
- build
|
|
|
|
- inspircd
|