mirror of
https://github.com/roles-ansible/ansible_collection_users.git
synced 2024-08-16 10:29:50 +02:00
16 lines
320 B
YAML
16 lines
320 B
YAML
|
---
|
||
|
- name: Update apt cache
|
||
|
become: true
|
||
|
ansible.builtin.apt:
|
||
|
cache_valid_time: 3600
|
||
|
update_cache: true
|
||
|
when:
|
||
|
- ansible_pkg_mgr == "apt"
|
||
|
|
||
|
- name: Install openssh server
|
||
|
become: true
|
||
|
ansible.builtin.package:
|
||
|
name: "{{ item }}"
|
||
|
state: 'present'
|
||
|
with_items: "{{ l3d_users__sshd_package }}"
|