1
0
Fork 0
mirror of https://github.com/roles-ansible/ansible_collection_users.git synced 2024-08-16 10:29:50 +02:00
ansible_collection_users/roles/admin/tasks/sudo.yml

15 lines
256 B
YAML
Raw Normal View History

2024-02-14 22:51:50 +01:00
---
- name: Update apt cache
become: true
ansible.builtin.apt:
cache_valid_time: 3600
update_cache: true
when:
- ansible_pkg_mgr == "apt"
- name: Install sudo
become: true
ansible.builtin.package:
name: 'sudo'
state: present