dmotte.podman
ansible-role-podman
:warning: Warning: This project is no longer maintained :warning:
I have decided to change the Ansible code to Bash for easier use.
This Ansible role helps you install Podman on Debian systems.
It has been tested with Debian 12 (bookworm).
Podman will be set up using the official podman package from the Debian software repositories. Additionally, this role lets you configure related features like the Podman socket and the podman-auto-update service, both for the system and for individual users.
How to Use
- Install this role with the
ansible-galaxycommand-line tool. - Then include it in the
taskssection of your Ansible Playbook. Check outtest/playbook.ymlfor a sample. Don’t forget to change the role name todmotte.podman.
Note: This role must be run as root (
ansible_become: true).
Role Variables
Refer to defaults/main.yml for the variables.
Useful Commands
After setting up Podman on your system with this Ansible role, you can find some helpful commands to manage your services here:
https://github.com/dmotte/misc/tree/main/snippets#shell-snippets-for-podman
Contributing
If you want to help with this project, you can use the test/playbook.yml file to test the role while you edit it.
Put your inventory file (e.g., hosts.yml) in the test folder.
Update the vars section of the test/playbook.yml file to fit your needs.
Then, you can run the playbook on your system:
cd test/
ansible-playbook -i hosts.yml playbook.yml
Ansible role to install Podman on Debian hosts
ansible-galaxy install dmotte.podman