lynx: Initial version of role

This commit is contained in:
Timo Makinen 2021-09-02 16:34:58 +00:00
parent c56b889f24
commit c156481c50
3 changed files with 26 additions and 0 deletions

3
lynx/files/html2text.sh Executable file
View file

@ -0,0 +1,3 @@
#!/bin/sh
cat "$@" | lynx -restrictions=all -dump -stdin -localhost -force_html -realm

2
lynx/files/lynx-site.cfg Normal file
View file

@ -0,0 +1,2 @@
# Default home page
STARTFILE:https://www.foo.sh

21
lynx/tasks/main.yml Normal file
View file

@ -0,0 +1,21 @@
---
- name: install packages
package:
name: lynx
state: installed
- name: create site configuration
copy:
dest: /etc/lynx-site.cfg
src: lynx-site.cfg
mode: 0644
owner: root
group: "{{ ansible_wheel }}"
- name: install html2text script
copy:
dest: /usr/local/bin/html2text
src: html2text.sh
mode: 0755
owner: root
group: "{{ ansible_wheel }}"