xfnw
67191fd363
simple configuration changes will no longer require root access, however you may have to chown -R ircd:ircd ircd to fix some of the permissions creating init services now lives in a new playbook, `enable.yml` which does require root access
33 lines
772 B
YAML
33 lines
772 B
YAML
- hosts: all
|
|
remote_user: ircd
|
|
|
|
tasks:
|
|
- name: check for ssl cert
|
|
stat:
|
|
path: /home/ircd/ircd/etc/ssl.pem
|
|
register: ssl_exists
|
|
|
|
- name: get ssl fingerprint
|
|
command: /home/ircd/ircd/bin/solanum-mkfingerprint sha512 /home/ircd/ircd/etc/ssl.pem
|
|
register: ssl_fingerprint
|
|
when: ssl_exists.stat.exists
|
|
|
|
- name: create ircd.conf
|
|
template:
|
|
src: ircd.j2
|
|
dest: /home/ircd/ircd/etc/ircd.conf
|
|
|
|
- name: create ircd.motd
|
|
template:
|
|
src: motd.j2
|
|
dest: /home/ircd/ircd/etc/ircd.motd
|
|
|
|
- name: copy oper CHALLENGE keys
|
|
copy:
|
|
src: challenge/
|
|
dest: /home/ircd/ircd/challenge/
|
|
|
|
- name: reload solanum
|
|
command: killall -1 solanum
|
|
ignore_errors: yes
|
|
|