Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for Ubuntu in ssh proxy #494

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions roles/sshpiper/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
ansible.posix.selinux:
policy: targeted
state: permissive
when: ansible_facts['os_family'] == 'RedHat'

- name: Install prerequisite pkgs
ansible.builtin.yum:
Expand All @@ -11,6 +12,18 @@
loop:
- git
- gcc
when: ansible_facts['os_family'] == 'RedHat'

- name: Install prerequisite packages for Ubuntu
ansible.builtin.apt:
name: "{{ item }}"
state: present
update_cache: true
loop:
- git
- gcc
- make
when: ansible_facts['os_family'] == 'Debian'

- name: Download Go
get_url:
Expand Down Expand Up @@ -60,6 +73,13 @@
ansible.builtin.systemd:
name: sshd
state: restarted
when: ansible_facts['os_family'] == 'RedHat'

- name: Restart SSH service for Ubuntu
ansible.builtin.systemd:
name: ssh
state: restarted
when: ansible_facts['os_family'] == 'Debian'

- name: Configure sshpiper yaml plugin
ansible.builtin.template:
Expand Down
Loading