mirror of
https://github.com/containers/ansible-podman-collections.git
synced 2026-05-02 05:42:51 +00:00
No description
Add possibility to use a specific user, either defined by --user argument on command line, or ansible_user, to connect to containers. It is inspired from https://github.com/containers/ansible-podman-collections/pull/19 the equivalent for podman connection. It was laso required to change the method to put file, from a mount mechanism, to the buildah copy function, to allow to set correctly the permissions of pushed files. Fixes: containers/ansible-podman-collections#25 Co-authored-by: Simon Brée <simon.bree@intersec.com> |
||
|---|---|---|
| .github | ||
| ci | ||
| contrib | ||
| plugins | ||
| tests | ||
| .gitignore | ||
| CODE-OF-CONDUCT.md | ||
| COPYING | ||
| galaxy.yml | ||
| README.md | ||
| SECURITY.md | ||
Ansible Collection: containers.podman
Basic Ansible modules for podman containers.
- name: Run container
podman_container:
- name: web
state: present
image: ubuntu:14.04
command: "sleep 1d"
Install collection from galaxy:
ansible-galaxy collection install containers.podman
or clone by your own:
mkdir -p ~/.ansible/collections/ansible_collections/containers/podman/
git clone https://github.com/containers/ansible-podman-collections.git ~/.ansible/collections/ansible_collections/containers/podman/