ngircd/tasks/main.yaml
changeset 43 b86f3fc9fb6f
child 48 4b18b1523ec2
equal deleted inserted replaced
42:edb53dfadfb5 43:b86f3fc9fb6f
       
     1 ---
       
     2 
       
     3 - name: apt install ngircd
       
     4   become: yes
       
     5   apt: name="ngircd"
       
     6   notify: restart ngircd
       
     7 
       
     8 - name: config server name
       
     9   become: yes
       
    10   lineinfile:
       
    11     path: "/etc/ngircd/ngircd.conf"
       
    12     regexp: '^	Name ='
       
    13     line: "	Name = {{ngircd_name}}"
       
    14   notify: restart ngircd
       
    15 
       
    16 - name: set motd
       
    17   become: yes
       
    18   copy:
       
    19     src: "{{ngircd_motd_src}}"
       
    20     dest: "/etc/ngircd/ngircd.motd"
       
    21     mode: "0644"
       
    22   notify: restart ngircd
       
    23 
       
    24 - name: start ngircd service
       
    25   become: yes
       
    26   systemd: name="ngircd" state="started" daemon_reload="yes"