15 lines
445 B
YAML
15 lines
445 B
YAML
---
|
|
- name: SSH family packages for Ubuntu
|
|
ansible.builtin.set_fact:
|
|
ssh_packages: [openssh-client, openssh-server]
|
|
when: ansible_distribution == "Ubuntu"
|
|
|
|
- name: SSH family packages for co-Ubuntu
|
|
ansible.builtin.set_fact:
|
|
ssh_packages: [openssh, openssh-clients, openssh-server]
|
|
when: ansible_distribution != "Ubuntu"
|
|
|
|
- name: Install the SSH family
|
|
ansible.builtin.package:
|
|
name: "{{ ssh_packages }}"
|
|
state: present
|