ngircd/tasks/main.yaml
changeset 48 4b18b1523ec2
parent 43 b86f3fc9fb6f
child 113 d843011c249d
equal deleted inserted replaced
47:3f1771bb0d79 48:4b18b1523ec2
    11     path: "/etc/ngircd/ngircd.conf"
    11     path: "/etc/ngircd/ngircd.conf"
    12     regexp: '^	Name ='
    12     regexp: '^	Name ='
    13     line: "	Name = {{ngircd_name}}"
    13     line: "	Name = {{ngircd_name}}"
    14   notify: restart ngircd
    14   notify: restart ngircd
    15 
    15 
    16 - name: set motd
    16 - name: config server local listen
       
    17   become: yes
       
    18   lineinfile:
       
    19     path: "/etc/ngircd/ngircd.conf"
       
    20     regexp: '^	Listen ='
       
    21     line: "	Listen = 127.0.0.1"
       
    22     insertafter: "^	;Listen ="
       
    23   notify: restart ngircd
       
    24 
       
    25 - name: config motd
       
    26   become: yes
       
    27   lineinfile:
       
    28     path: "/etc/ngircd/ngircd.conf"
       
    29     regexp: '^	Info ='
       
    30     line: "	Info = {{ngircd_motd}}"
       
    31   notify: restart ngircd
       
    32 
       
    33 - name: copy motd file
    17   become: yes
    34   become: yes
    18   copy:
    35   copy:
    19     src: "{{ngircd_motd_src}}"
    36     src: "{{ngircd_motd_src}}"
    20     dest: "/etc/ngircd/ngircd.motd"
    37     dest: "/etc/ngircd/ngircd.motd"
    21     mode: "0644"
    38     mode: "0644"