urlwatch
This commit is contained in:
parent
925db3a87c
commit
483b5d93c5
27
base.yml
27
base.yml
|
@ -105,7 +105,32 @@
|
||||||
|
|
||||||
- name: Install msmtp
|
- name: Install msmtp
|
||||||
apt:
|
apt:
|
||||||
name: [msmtp, msmtp-mta]
|
name: [msmtp, msmtp-mta, bsd-mailx]
|
||||||
|
|
||||||
|
- name: Ensure root crontab sends email from me
|
||||||
|
community.general.cronvar:
|
||||||
|
user: root
|
||||||
|
name: MAILFROM
|
||||||
|
value: "{{ vault_smtp_username }}"
|
||||||
|
|
||||||
|
- name: Ensure my crontab sends email from me
|
||||||
|
community.general.cronvar:
|
||||||
|
user: mdk
|
||||||
|
name: MAILFROM
|
||||||
|
value: "{{ vault_smtp_username }}"
|
||||||
|
|
||||||
|
- name: Ensure root crontab sends email to me
|
||||||
|
community.general.cronvar:
|
||||||
|
user: root
|
||||||
|
name: MAILTO
|
||||||
|
value: "{{ vault_smtp_username }}"
|
||||||
|
|
||||||
|
- name: Ensure my crontab sends email to me
|
||||||
|
community.general.cronvar:
|
||||||
|
user: root
|
||||||
|
name: MAILTO
|
||||||
|
value: "{{ vault_smtp_username }}"
|
||||||
|
|
||||||
|
|
||||||
handlers:
|
handlers:
|
||||||
- name: reload fail2ban
|
- name: reload fail2ban
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
---
|
||||||
|
url: https://mdk.fr/
|
||||||
|
filter:
|
||||||
|
- html2text:
|
||||||
|
method: pyhtml2text
|
||||||
|
unicode_snob: true
|
||||||
|
ignore_images: true
|
||||||
|
single_line_break: true
|
||||||
|
---
|
||||||
|
url: https://carrieres-sur-seine.fr/actualites
|
||||||
|
filter:
|
||||||
|
- re.sub: 'index\.php/'
|
||||||
|
- html2text:
|
||||||
|
method: pyhtml2text
|
||||||
|
unicode_snob: true
|
||||||
|
ignore_images: true
|
||||||
|
single_line_break: true
|
||||||
|
body_width: 0
|
||||||
|
---
|
||||||
|
url: https://carrieres-sur-seine.fr/menus-scolaires
|
||||||
|
filter:
|
||||||
|
- re.sub: 'index\.php/'
|
||||||
|
- html2text:
|
||||||
|
method: pyhtml2text
|
||||||
|
unicode_snob: true
|
||||||
|
ignore_images: true
|
||||||
|
single_line_break: true
|
||||||
|
body_width: 0
|
||||||
|
---
|
||||||
|
url: https://www.tiobe.com/tiobe-index/
|
||||||
|
filter:
|
||||||
|
- html2text:
|
||||||
|
method: pyhtml2text
|
||||||
|
unicode_snob: true
|
||||||
|
ignore_images: true
|
||||||
|
single_line_break: true
|
||||||
|
---
|
||||||
|
url: https://mdk.fr/x/
|
||||||
|
---
|
||||||
|
url: https://wyz.fr
|
||||||
|
filter:
|
||||||
|
- html2text:
|
||||||
|
method: pyhtml2text
|
||||||
|
unicode_snob: true
|
||||||
|
ignore_images: true
|
||||||
|
single_line_break: true
|
||||||
|
---
|
||||||
|
url: https://cdimage.debian.org/debian-cd/current/amd64/bt-cd/
|
||||||
|
filter:
|
||||||
|
- html2text:
|
||||||
|
method: pyhtml2text
|
||||||
|
unicode_snob: true
|
||||||
|
ignore_images: true
|
||||||
|
single_line_break: true
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,28 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
display:
|
||||||
|
error: true
|
||||||
|
new: true
|
||||||
|
unchanged: false
|
||||||
|
job_defaults:
|
||||||
|
all: {}
|
||||||
|
browser: {}
|
||||||
|
shell: {}
|
||||||
|
url: {}
|
||||||
|
report:
|
||||||
|
email:
|
||||||
|
enabled: true
|
||||||
|
from: 'mdk@mdk.fr'
|
||||||
|
html: false
|
||||||
|
method: sendmail
|
||||||
|
sendmail:
|
||||||
|
path: /usr/sbin/sendmail
|
||||||
|
subject: '{count} changes: {jobs}'
|
||||||
|
to: 'julien@palard.fr'
|
||||||
|
html:
|
||||||
|
diff: unified
|
||||||
|
text:
|
||||||
|
details: true
|
||||||
|
footer: true
|
||||||
|
line_length: 75
|
||||||
|
minimal: false
|
|
@ -1,25 +1,25 @@
|
||||||
[DEFAULT]
|
[DEFAULT]
|
||||||
from = user@rss2email.invalid
|
from = mdk@mdk.fr
|
||||||
user-agent = rss2email/__VERSION__ (__URL__)
|
user-agent = rss2email/__VERSION__ (__URL__)
|
||||||
use-8bit = False
|
use-8bit = False
|
||||||
force-from = False
|
force-from = False
|
||||||
use-publisher-email = False
|
use-publisher-email = False
|
||||||
name-format = {feed-title}: {author}
|
name-format = {feed-title}: {author}
|
||||||
to = julien@palard.fr
|
to = mdk+r2e@mdk.fr
|
||||||
proxy =
|
proxy =
|
||||||
feed-timeout = 60
|
feed-timeout = 60
|
||||||
same-server-fetch-interval = 0
|
same-server-fetch-interval = 0
|
||||||
active = True
|
active = True
|
||||||
digest = False
|
digest = False
|
||||||
date-header = False
|
date-header = False
|
||||||
date-header-order = modified, issued, created, expired
|
date-header-order = modified, issued, created, expired
|
||||||
bonus-header =
|
bonus-header =
|
||||||
trust-guid = True
|
trust-guid = True
|
||||||
trust-link = False
|
trust-link = False
|
||||||
reply-changes = False
|
reply-changes = False
|
||||||
encodings = US-ASCII, ISO-8859-1, UTF-8, BIG5, ISO-2022-JP
|
encodings = US-ASCII, ISO-8859-1, UTF-8, BIG5, ISO-2022-JP
|
||||||
post-process =
|
post-process =
|
||||||
digest-post-process =
|
digest-post-process =
|
||||||
html-mail = True
|
html-mail = True
|
||||||
multipart-html = False
|
multipart-html = False
|
||||||
use-css = False
|
use-css = False
|
||||||
|
@ -66,22 +66,7 @@ wrap-links = True
|
||||||
body-width = 0
|
body-width = 0
|
||||||
email-protocol = sendmail
|
email-protocol = sendmail
|
||||||
sendmail = /usr/sbin/sendmail
|
sendmail = /usr/sbin/sendmail
|
||||||
sendmail_config =
|
sendmail_config =
|
||||||
smtp-auth = False
|
|
||||||
smtp-username = username
|
|
||||||
smtp-password = password
|
|
||||||
smtp-server = smtp.yourisp.net:25
|
|
||||||
smtp-port = 465
|
|
||||||
smtp-ssl = False
|
|
||||||
imap-auth = False
|
|
||||||
imap-username = username
|
|
||||||
imap-password = password
|
|
||||||
imap-server = imap.yourisp.net
|
|
||||||
imap-port = 143
|
|
||||||
imap-ssl = False
|
|
||||||
imap-mailbox = INBOX
|
|
||||||
maildir-path = ~/Maildir
|
|
||||||
maildir-mailbox = INBOX
|
|
||||||
verbose = warning
|
verbose = warning
|
||||||
|
|
||||||
[feed.Agarri-Sécurité-informatique-offensive]
|
[feed.Agarri-Sécurité-informatique-offensive]
|
||||||
|
@ -154,8 +139,10 @@ url = https://pidgin.im/post/index.xml
|
||||||
url = https://code.gouv.fr/feed/feed.xml
|
url = https://code.gouv.fr/feed/feed.xml
|
||||||
|
|
||||||
[feed.krebsonsecurity]
|
[feed.krebsonsecurity]
|
||||||
url = https://krebsonsecurity.com/
|
url = https://krebsonsecurity.com/feed/
|
||||||
|
|
||||||
[feed.ycombinator]
|
[feed.ycombinator]
|
||||||
url = https://hnrss.org/newest?points=300
|
url = https://hnrss.org/newest?points=400
|
||||||
|
|
||||||
|
[feed.framework]
|
||||||
|
url = https://frame.work/fr/fr/blog.rss
|
|
@ -2,5 +2,3 @@
|
||||||
roles:
|
roles:
|
||||||
- src: julienpalard.nginx
|
- src: julienpalard.nginx
|
||||||
version: master
|
version: master
|
||||||
- src: julienpalard.ctfd
|
|
||||||
version: master
|
|
||||||
|
|
|
@ -0,0 +1,31 @@
|
||||||
|
---
|
||||||
|
|
||||||
|
- hosts: mdk
|
||||||
|
tasks:
|
||||||
|
- name: Install urlwatch
|
||||||
|
apt: name=urlwatch state=present
|
||||||
|
|
||||||
|
- name: urlwatch cron
|
||||||
|
cron:
|
||||||
|
user: mdk
|
||||||
|
name: "urlwatch"
|
||||||
|
minute: "3"
|
||||||
|
job: "/usr/bin/urlwatch >/dev/null"
|
||||||
|
|
||||||
|
- name: Configure urlwatch
|
||||||
|
copy:
|
||||||
|
src: .urlwatch/urlwatch.yaml
|
||||||
|
dest: /home/mdk/.urlwatch/urlwatch.yaml
|
||||||
|
owner: mdk
|
||||||
|
group: mdk
|
||||||
|
mode: 0644
|
||||||
|
backup: true
|
||||||
|
|
||||||
|
- name: Configure urlwatch urls
|
||||||
|
copy:
|
||||||
|
src: .urlwatch/urls.yaml
|
||||||
|
dest: /home/mdk/.urlwatch/urls.yaml
|
||||||
|
owner: mdk
|
||||||
|
group: mdk
|
||||||
|
mode: 0644
|
||||||
|
backup: true
|
Loading…
Reference in New Issue