2023-08-29 11:14:23 +02:00
|
|
|
---
|
2024-07-22 11:36:40 +02:00
|
|
|
- name: SSH family packages for co-Ubuntu
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
ssh_packages: [openssh, openssh-clients, openssh-server]
|
|
|
|
when: ansible_distribution not in ("Ubuntu", "Archlinux")
|
|
|
|
|
2023-08-29 11:14:23 +02:00
|
|
|
- name: SSH family packages for Ubuntu
|
|
|
|
ansible.builtin.set_fact:
|
|
|
|
ssh_packages: [openssh-client, openssh-server]
|
|
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
|
2024-07-22 11:36:40 +02:00
|
|
|
- name: SSH family package for archLinux
|
2023-08-29 11:14:23 +02:00
|
|
|
ansible.builtin.set_fact:
|
2024-07-22 11:36:40 +02:00
|
|
|
ssh_packages: [openssh]
|
|
|
|
when: ansible_distribution == "Archlinux"
|
2023-08-29 11:14:23 +02:00
|
|
|
|
|
|
|
- name: Install the SSH family
|
|
|
|
ansible.builtin.package:
|
|
|
|
name: "{{ ssh_packages }}"
|
|
|
|
state: present
|