2022-12-18 22:18:43 -06:00
|
|
|
---
|
|
|
|
|
|
|
|
- name: Clone KiwiIRC
|
|
|
|
become: yes
|
|
|
|
git:
|
|
|
|
repo: https://github.com/prawnsalad/KiwiIRC.git
|
|
|
|
dest: /usr/local/src/KiwiIRC
|
|
|
|
update: no
|
|
|
|
|
2023-04-18 23:56:59 -05:00
|
|
|
# Need to capture AniNIX skinning of client as well as client build process.
|
|
|
|
|
2022-12-18 22:18:43 -06:00
|
|
|
- name: Update permissions
|
|
|
|
become: yes
|
|
|
|
file:
|
|
|
|
path: /usr/local/src/KiwiIRC
|
|
|
|
recurse: yes
|
|
|
|
owner: ircd
|
|
|
|
group: ircd
|
|
|
|
|
|
|
|
- name: Populate config
|
|
|
|
become: yes
|
|
|
|
register: config
|
|
|
|
template:
|
|
|
|
src: kiwiirc/config.js.j2
|
|
|
|
dest: /usr/local/src/KiwiIRC/config.js
|
|
|
|
owner: ircd
|
|
|
|
group: ircd
|
|
|
|
mode: 0600
|
|
|
|
|
|
|
|
- name: Copy service file
|
|
|
|
become: yes
|
|
|
|
register: servicesfile
|
|
|
|
copy:
|
2024-07-23 14:18:32 -05:00
|
|
|
src: services/kiwiirc.service
|
|
|
|
dest: /usr/lib/systemd/system/kiwiirc.service
|
2022-12-18 22:18:43 -06:00
|
|
|
owner: root
|
|
|
|
group: root
|
|
|
|
mode: 0644
|
|
|
|
|
|
|
|
- name: Reload services
|
|
|
|
when: servicesfile.changed
|
|
|
|
become: yes
|
|
|
|
systemd:
|
|
|
|
daemon_reload: true
|
|
|
|
|
|
|
|
- name: Ensure service running
|
|
|
|
become: yes
|
|
|
|
service:
|
2024-07-23 14:18:32 -05:00
|
|
|
name: kiwiirc
|
2022-12-18 22:18:43 -06:00
|
|
|
state: started
|
|
|
|
enabled: yes
|
|
|
|
|
|
|
|
- name: Reload on config change
|
|
|
|
become: yes
|
|
|
|
when: config.changed or servicesfile.changed
|
|
|
|
service:
|
2024-07-23 14:18:32 -05:00
|
|
|
name: kiwiirc
|
2022-12-18 22:18:43 -06:00
|
|
|
state: reloaded
|