diff --git a/tasks/main.yml b/tasks/main.yml index 05e9343..7c77327 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -16,13 +16,11 @@ tags: - sshd -- name: Installed - action: > - {{ ansible_pkg_mgr }} - name="{{ item }}" - state=installed +- name: Install ssh packages + package: + name: "{{ item }}" + state: present with_items: "{{ sshd_packages }}" - when: ansible_pkg_mgr != 'unknown' tags: - sshd