dotfiles/roles/system/sshd/tasks/install.yml

16 lines
445 B
YAML
Raw Normal View History

---
- 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