summaryrefslogtreecommitdiffstats
path: root/roles/static_inventory/tasks/sshtun.yml
blob: b0e4c832c2cdae7d19a146bf2a5c6afe796ab0f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
---
- name: Create ssh tunnel systemd service
  template:
    src: ssh-tunnel.service.j2
    dest: /etc/systemd/system/ssh-tunnel.service
    mode: 0644

- name: reload the systemctl daemon after file update
  command: systemctl daemon-reload

- name: Enable ssh tunnel service
  service:
    name: ssh-tunnel
    enabled: true
    state: restarted