ngircd/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sat, 04 Jul 2020 12:47:25 -0500
changeset 114 34c8632d763d
parent 113 d843011c249d
permissions -rw-r--r--
Added oragono role.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
43
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     1
---
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     2
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     3
- name: apt install ngircd
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     4
  become: yes
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     5
  apt: name="ngircd"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     6
  notify: restart ngircd
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     7
113
d843011c249d Got ngircd + atheme services roles working.
Luke Hoersten <luke@hoersten.org>
parents: 48
diff changeset
     8
- name: configure ngircd
48
4b18b1523ec2 Updated irc tasks.
Luke Hoersten <luke@hoersten.org>
parents: 43
diff changeset
     9
  become: yes
113
d843011c249d Got ngircd + atheme services roles working.
Luke Hoersten <luke@hoersten.org>
parents: 48
diff changeset
    10
  template:
d843011c249d Got ngircd + atheme services roles working.
Luke Hoersten <luke@hoersten.org>
parents: 48
diff changeset
    11
    src: "ngircd.conf.j2"
d843011c249d Got ngircd + atheme services roles working.
Luke Hoersten <luke@hoersten.org>
parents: 48
diff changeset
    12
    dest: "/etc/ngircd/ngircd.conf"
48
4b18b1523ec2 Updated irc tasks.
Luke Hoersten <luke@hoersten.org>
parents: 43
diff changeset
    13
  notify: restart ngircd
4b18b1523ec2 Updated irc tasks.
Luke Hoersten <luke@hoersten.org>
parents: 43
diff changeset
    14
4b18b1523ec2 Updated irc tasks.
Luke Hoersten <luke@hoersten.org>
parents: 43
diff changeset
    15
- name: copy motd file
43
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
  become: yes
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  copy:
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
    src: "{{ngircd_motd_src}}"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
    dest: "/etc/ngircd/ngircd.motd"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
  notify: restart ngircd
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
- name: start ngircd service
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
  become: yes
113
d843011c249d Got ngircd + atheme services roles working.
Luke Hoersten <luke@hoersten.org>
parents: 48
diff changeset
    24
  systemd: name="ngircd" state="started" enabled="yes" daemon_reload="yes"