ansible-collection-irc/roles/inspircd/tasks/config.yml

25 lines
552 B
YAML

---
- name: Render /etc/inspircd/motd.txt
ansible.builtin.copy:
content: "{{ inspircd_motd }}"
dest: /etc/inspircd/motd.txt
owner: root
group: root
mode: "0644"
notify: Reload inspircd
- name: Render /etc/inspircd/inspircd.conf
ansible.builtin.template:
src: etc/inspircd/inspircd.conf.j2
dest: /etc/inspircd/inspircd.conf
owner: root
group: root
mode: "0644"
notify: Reload inspircd
- name: Start and enable inspircd
ansible.builtin.service:
name: inspircd
state: started
enabled: true