main.yml (780B)
1 --- 2 - name: Install gophernicus 3 package: 4 name: gophernicus 5 state: latest 6 7 - name: Set up inetd 8 blockinfile: 9 path: /etc/inetd.conf 10 state: present 11 create: yes 12 block: | 13 gopher stream tcp4 nowait _gophernicus /usr/local/libexec/in.gophernicus in.gophernicus -h "{{ gopher_domain }}" -nv 14 gopher stream tcp6 nowait _gophernicus /usr/local/libexec/in.gophernicus in.gophernicus -h "{{ gopher_domain }}" -nv 15 owner: root 16 group: wheel 17 mode: 0644 18 19 - name: Set up gopher folder permissions 20 file: 21 path: "{{ gopher_folder }}" 22 state: directory 23 owner: "{{ gopher_folder_owner }}" 24 group: "{{ gopher_folder_group }}" 25 mode: 0755 26 27 28 - name: enable and start inetd 29 service: 30 name: inetd 31 state: started 32 enabled: yes