dotfiles/roles/system/sshd/tasks/install.yml
Matej Focko 2d4cc595e8
roles(system/sshd): create SSH server config
Signed-off-by: Matej Focko <me@mfocko.xyz>
2023-08-30 15:42:27 +02:00

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