sshtun.yml 349 B

123456789101112131415
  1. ---
  2. - name: Create ssh tunnel systemd service
  3. template:
  4. src: ssh-tunnel.service.j2
  5. dest: /etc/systemd/system/ssh-tunnel.service
  6. mode: 0644
  7. - name: reload the systemctl daemon after file update
  8. command: systemctl daemon-reload
  9. - name: Enable ssh tunnel service
  10. service:
  11. name: ssh-tunnel
  12. enabled: true
  13. state: restarted