From 1d65e7e176a7633422fa8670358b63a2f16e4cf1 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 22 Jul 2024 11:36:40 +0200 Subject: [PATCH] feat(sshd): adjust for archLinux Signed-off-by: Matej Focko --- roles/sshd/tasks/install.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/roles/sshd/tasks/install.yml b/roles/sshd/tasks/install.yml index ed3d811..6d5c586 100644 --- a/roles/sshd/tasks/install.yml +++ b/roles/sshd/tasks/install.yml @@ -1,13 +1,18 @@ --- +- 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") + - 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 +- name: SSH family package for archLinux ansible.builtin.set_fact: - ssh_packages: [openssh, openssh-clients, openssh-server] - when: ansible_distribution != "Ubuntu" + ssh_packages: [openssh] + when: ansible_distribution == "Archlinux" - name: Install the SSH family ansible.builtin.package: