fix: install curl, gpg, ca-certificates in molecule prepare

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>
This commit is contained in:
Emil Simeonov
2026-06-20 22:07:55 +02:00
co-authored by Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
parent 119d70e137
commit 02909bf8b4
@@ -9,9 +9,13 @@
cache_valid_time: 0 cache_valid_time: 0
when: ansible_facts['os_family'] == 'Debian' when: ansible_facts['os_family'] == 'Debian'
- name: Install python3-debian for deb822_repository module - name: Install prerequisites for rootless Docker role (Debian/Ubuntu)
ansible.builtin.apt: ansible.builtin.apt:
name: python3-debian name:
- curl
- gpg
- python3-debian
- ca-certificates
state: present state: present
when: ansible_facts['os_family'] == 'Debian' when: ansible_facts['os_family'] == 'Debian'
@@ -19,3 +23,12 @@
community.general.pacman: community.general.pacman:
update_cache: true update_cache: true
when: ansible_facts['os_family'] == 'Archlinux' 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'