diff --git a/playbooks/deploy/raspberrypi.yml b/playbooks/deploy/raspberrypi.yml index 800c6c2..7556f81 100644 --- a/playbooks/deploy/raspberrypi.yml +++ b/playbooks/deploy/raspberrypi.yml @@ -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=' diff --git a/templates/upnp_forward_ssh b/templates/upnp_forward_ssh new file mode 100644 index 0000000..6afd418 --- /dev/null +++ b/templates/upnp_forward_ssh @@ -0,0 +1 @@ +* * * * * root /usr/bin/upnpc -r {{ ansible_port }} tcp