ngircd/tasks/main.yaml
author Luke Hoersten <luke@hoersten.org>
Sun, 14 Jun 2020 15:22:25 -0500
changeset 46 f43ad090546d
parent 43 b86f3fc9fb6f
child 48 4b18b1523ec2
permissions -rw-r--r--
Fixed psql sytnax
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
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     8
- name: config server name
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
     9
  become: yes
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    10
  lineinfile:
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    11
    path: "/etc/ngircd/ngircd.conf"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    12
    regexp: '^	Name ='
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    13
    line: "	Name = {{ngircd_name}}"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    14
  notify: restart ngircd
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    15
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    16
- name: set motd
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    17
  become: yes
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    18
  copy:
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    19
    src: "{{ngircd_motd_src}}"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    20
    dest: "/etc/ngircd/ngircd.motd"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    21
    mode: "0644"
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    22
  notify: restart ngircd
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    23
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    24
- name: start ngircd service
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    25
  become: yes
b86f3fc9fb6f Added ngircd.
Luke Hoersten <luke@hoersten.org>
parents:
diff changeset
    26
  systemd: name="ngircd" state="started" daemon_reload="yes"