{"id":19882443,"url":"https://github.com/derjd/ansible-podman","last_synced_at":"2026-05-09T22:09:13.776Z","repository":{"id":54197290,"uuid":"220837726","full_name":"derJD/ansible-podman","owner":"derJD","description":"Ansible Role installing and configuring podman","archived":false,"fork":false,"pushed_at":"2021-03-03T18:15:34.000Z","size":14,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T18:19:23.936Z","etag":null,"topics":["ansible","ansible-role","podman","role"],"latest_commit_sha":null,"homepage":"","language":"Makefile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/derJD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-10T19:15:04.000Z","updated_at":"2023-06-02T02:09:30.000Z","dependencies_parsed_at":"2022-08-13T09:00:33.334Z","dependency_job_id":null,"html_url":"https://github.com/derJD/ansible-podman","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derJD%2Fansible-podman","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derJD%2Fansible-podman/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derJD%2Fansible-podman/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/derJD%2Fansible-podman/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/derJD","download_url":"https://codeload.github.com/derJD/ansible-podman/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241310869,"owners_count":19942037,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ansible","ansible-role","podman","role"],"created_at":"2024-11-12T17:17:23.792Z","updated_at":"2026-05-09T22:09:13.728Z","avatar_url":"https://github.com/derJD.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"Podman\n======\n\nInstall and configure podman.\nValid options for storage.conf can be seen [here](https://github.com/containers/storage/blob/master/docs/containers-storage.conf.5.md).\nValid options for registries.conf can be seen [here](https://github.com/containers/image/blob/master/docs/containers-registries.conf.5.md).\n\nRequirements\n------------\n\n* Please ensure that you install all collections described in [depencency section](#dependencies)\n* Please do not use `gather_facts: no` as it's needed for distinguishing OS distributions\n\nRole Variables\n--------------\n\n| Variable | Type | Default | Description |\n| -------- | ---- | ------- | ----------- |\n| `podman_packages` | List | `[\"podman\"]` | List of packages to install |\n| `podman_packages_state` | String | `present` | State of package to install |\n| `podman_socket` | Bool | False | Enable docker compatible podman API service |\n| `podman_conf_dir` | String | `/etc/containers/` | Container config directory |\n| `podman_storage_conf_file` | String | `/etc/containers/storage.conf` | Path to storage.conf |\n| `podman_registries_conf_file` | String | `/etc/containers/registries.conf` | Path to registries.conf |\n| `podman_storage_settings` | Dict | `{}` | Settings for storage.conf |\n| `podman_registries_settings` | Dict | `{}` | Settings for registries.conf |\n| `podman_repo_base_url` | String | [See defaults/main.yml](defaults/main.yml#L13) | libcontainer's repository URL |\n| `podman_repo_distro` | String | `{{ ansible_distribution }}_{{ ansible_distribution_version }}` | String containing Distro and version |\n| `podman_yum_repo_url` | String | `{{ podman_repo_base_url }}{{ ansible_distribution }}_{{ ansible_distribution_major_version }}` | YUM repo URL |\n| `podman_rpm_key` | String | `{{ podman_repo_base_url }}{{ podman_repo_distro }}/repodata/repomd.xml.key` | URL to the RPM key |\n| `podman_libseccomp2_backport_releases` | List | `[\"buster\"]` | List of releases that needs libseccomp2 installed from backports |\n\nDependencies\n------------\n\nThis role depends on a collection. Currently there is no way of handling these dependencies within roles meta [and there won't be any.](https://github.com/ansible/ansible/issues/62847#issuecomment-756836439)\n\n* [![Galaxy](https://img.shields.io/static/v1??style=flat\u0026logo=ansible\u0026label=galaxy\u0026message=derJD.general\u0026color=blue)](https://galaxy.ansible.com/derJD/general)\n\nInstall directly `ansible-galaxy collection install derjd.general` or via `requirements.yml`:\n\n```yaml\n---\n\ncollections:\n  - derjd.general\n\n```\n\nExample Playbook\n----------------\n\n* Most basic example\n\n```yaml\n---\n\n- hosts: servers\n  become_user: root\n  roles:\n     - derJD.podman\n```\n\n* Use zfs as storage driver and let it use a different dataset\n\n```yaml\n---\n\n- hosts: servers\n  become_user: root\n  vars:\n    podman_storage_settings:\n      storage:\n        driver: zfs\n      storage.options.zfs:\n        fsname: rpool/podman\n\n  tasks:\n    - name: zfs create rpool/podman\n      community.general.zfs:\n        name: rpool/podman\n        state: present\n        extra_zfs_properties:\n          mountpoint: none\n\n    - include_role: \n         name: derJD.podman\n```\n\n* Example with many config switches\n\n```yaml\n---\n\n- hosts: servers\n  become_user: root\n  vars:\n    podman_storage_settings:\n      storage:\n        driver: zfs\n      storage.options:\n        override_kernel_check: true\n      storage.options.thinpool:\n        skip_mount_home: false\n        fs: ext4\n    podman_registries_settings:\n      registries.search:\n        regestries:\n          - docker.io\n          - registry.fedoraproject.org\n          - quay.io\n          - registry.access.redhat.com\n          - registry.centos.org\n      registries.block:\n        registries: []\n\n  roles:\n     - derJD.podman\n```\n\nLicense\n-------\n\nBSD\n\nAuthor Information\n------------------\n\n[derJD](https://github.com/derJD/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderjd%2Fansible-podman","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fderjd%2Fansible-podman","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fderjd%2Fansible-podman/lists"}