1
0
Fork 0

Install cron job "upnp_forward_ssh"

This commit is contained in:
Alex Kotov 2020-02-10 11:18:12 +05:00
parent 12e23b1c21
commit 5de02dd890
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
2 changed files with 13 additions and 0 deletions

View file

@ -8,6 +8,10 @@
roles:
- kotovalexarian.common
tasks:
- name: Install system packages
apt:
name: miniupnpc
- name: Install cron jon "report_ip"
template:
src: ../../templates/report_ip
@ -15,3 +19,11 @@
owner: root
group: root
mode: 'u=rw,g=r,o='
- name: Install cron jon "upnp_forward_ssh"
template:
src: ../../templates/upnp_forward_ssh
dest: /etc/cron.d/upnp_forward_ssh
owner: root
group: root
mode: 'u=rw,g=r,o='

View file

@ -0,0 +1 @@
* * * * * root /usr/bin/upnpc -r {{ ansible_port }} tcp