snel.kubernetes-cluster/roles/os_debian/tasks/apt.yml

20 lines
485 B
YAML

---
- name: Check if APT cache exists
ansible.builtin.find:
paths: /var/lib/apt/lists/
patterns: "*_{{ ansible_distribution_release }}_InRelease"
register: _pkgcache
- name: Update repositories cache
when: _pkgcache.matched == 0
ansible.builtin.apt:
update_cache: true
- name: Wait for APT Lock
ansible.builtin.include_tasks: shared/tasks/wait_apt.yml
- name: Install APT Transport HTTPS
ansible.builtin.apt:
name: apt-transport-https
state: present