29 lines
722 B
YAML
29 lines
722 B
YAML
---
|
|
- 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
|