Install cron job "upnp_forward_ssh"
This commit is contained in:
parent
12e23b1c21
commit
5de02dd890
2 changed files with 13 additions and 0 deletions
|
@ -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='
|
||||
|
|
1
templates/upnp_forward_ssh
Normal file
1
templates/upnp_forward_ssh
Normal file
|
@ -0,0 +1 @@
|
|||
* * * * * root /usr/bin/upnpc -r {{ ansible_port }} tcp
|
Reference in a new issue