lynx: Initial version of role
This commit is contained in:
parent
c56b889f24
commit
c156481c50
3 changed files with 26 additions and 0 deletions
3
lynx/files/html2text.sh
Executable file
3
lynx/files/html2text.sh
Executable 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
2
lynx/files/lynx-site.cfg
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Default home page
|
||||
STARTFILE:https://www.foo.sh
|
21
lynx/tasks/main.yml
Normal file
21
lynx/tasks/main.yml
Normal 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 }}"
|
Loading…
Add table
Reference in a new issue