role-podman/tasks/install_depens.yml

29 lines
722 B
YAML
Raw Normal View History

2023-09-08 20:41:09 +00:00
---
- block:
- name: Update apt cache
apt:
cache_valid_time: 3600
update_cache: true
register: _pre_update_apt_cache
until: _pre_update_apt_cache is succeeded
when:
- ansible_pkg_mgr == "apt"
- name: Install dependencies for podman
package:
name: "{{ podman_build_deps }}"
state: present
register: _install_dep_packages
until: _install_dep_packages is succeeded
retries: 5
delay: 2
- name: Install dependencies for crun
package:
name: "{{ crun_build_deps }}"
state: present
register: _install_dep_packages
until: _install_dep_packages is succeeded
retries: 5
delay: 2