38 lines
832 B
YAML
38 lines
832 B
YAML
---
|
|
- name: Install Podman
|
|
ansible.builtin.apt:
|
|
name: podman
|
|
state: present
|
|
|
|
- name: Install python3-pip
|
|
ansible.builtin.apt:
|
|
name: python3-pip
|
|
state: present
|
|
register: install_pip_output
|
|
|
|
- name: Display python3-pip installation output
|
|
debug:
|
|
var: install_pip_output
|
|
|
|
- name: Check if pip3 is installed
|
|
ansible.builtin.command: which pip3
|
|
register: which_pip3_output
|
|
ignore_errors: true # Allow task to fail if pip3 is not found
|
|
|
|
- name: Display which pip3 output
|
|
debug:
|
|
var: which_pip3_output
|
|
|
|
- name: Clear facts to ensure pip is found
|
|
meta: clear_facts
|
|
|
|
- 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
|