35 lines
843 B
YAML
35 lines
843 B
YAML
---
|
|
- name: Install Podman
|
|
ansible.builtin.apt:
|
|
name: podman
|
|
state: present
|
|
|
|
- name: Install python3-pip
|
|
ansible.builtin.apt:
|
|
name: python3-pip
|
|
state: present
|
|
|
|
- name: Install podman-compose
|
|
ansible.builtin.pip:
|
|
name: podman-compose
|
|
state: present
|
|
|
|
- name: Install podman-docker (optional, for docker command alias)
|
|
ansible.builtin.apt:
|
|
name: podman-docker
|
|
state: present
|
|
|
|
- name: Configure unqualified image search registries for Podman
|
|
ansible.builtin.copy:
|
|
src: registries.conf.j2
|
|
dest: /etc/containers/registries.conf
|
|
owner: root
|
|
group: root
|
|
mode: '0644'
|
|
become: true
|
|
|
|
- name: Install containers.podman collection
|
|
ansible.builtin.command: ansible-galaxy collection install containers.podman
|
|
args:
|
|
creates: ~/.ansible/collections/ansible_collections/containers/podman
|