The geerlingguy Docker containers don't include curl or gpg, which are needed by the rootless Docker role to download and dearmor the Docker APT repository GPG key. Added these prerequisites to the molecule common prepare playbook. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
35 lines
901 B
YAML
35 lines
901 B
YAML
---
|
|
- name: Prepare
|
|
hosts: all
|
|
become: true
|
|
tasks:
|
|
- name: Update apt cache
|
|
ansible.builtin.apt:
|
|
update_cache: true
|
|
cache_valid_time: 0
|
|
when: ansible_facts['os_family'] == 'Debian'
|
|
|
|
- name: Install prerequisites for rootless Docker role (Debian/Ubuntu)
|
|
ansible.builtin.apt:
|
|
name:
|
|
- curl
|
|
- gpg
|
|
- python3-debian
|
|
- ca-certificates
|
|
state: present
|
|
when: ansible_facts['os_family'] == 'Debian'
|
|
|
|
- name: Update pacman cache
|
|
community.general.pacman:
|
|
update_cache: true
|
|
when: ansible_facts['os_family'] == 'Archlinux'
|
|
|
|
- name: Install prerequisites for rootless Docker role (Arch Linux)
|
|
community.general.pacman:
|
|
name:
|
|
- curl
|
|
- gpg
|
|
- ca-certificates
|
|
state: present
|
|
when: ansible_facts['os_family'] == 'Archlinux'
|