Comments (3)
@SvenVD can you please paste a task you run? And would be great to see a log with running -vvvv
from ansible-podman-collections.
If I'm right and you set explicitly env: {}
in task, then it explains this behavior. But I don't understand why to set env: {}
and what is the reasoning behind this.
from ansible-podman-collections.
The task is
- name: podman_rootless | Configure and download {{ podman_rootless_container_image }} container to run under user {{ podman_rootless_user }}
containers.podman.podman_container:
name: "{{ podman_rootless_hostname }}"
image: "{{ podman_rootless_container_image }}"
#We will start it with the generated systemd file
state: present
ipc: "private"
#We do not need to force recreating all the time
#recreate: yes
ports: "{{ podman_rootless_ports }}"
hostname: "{{ podman_rootless_hostname }}"
env: "{{ podman_rootless_env }}"
volume: "{{ podman_rootless_volume }}"
userns: "{{ podman_rootless_userns }}"
#https://docs.podman.io/en/latest/markdown/podman-generate-systemd.1.html
generate_systemd:
path: /home/{{ podman_rootless_user }}/.config/systemd/user
restart_policy: on-failure
time: 120
names: true
become_user: "{{ podman_rootless_user }}"
register: podman_rootless_configure_and_download_result
and it and other tasks in the role gets called by
- name: app_containerx | manage container
include_role:
name: podman
tasks_from: rootless_container
vars:
podman_rootless_user: "user"
... and so on
podman_rootless_env is optional in the latter and not passed in this example, but in defaults/main.yml we set it to podman_rootless_env: {} if it is not overwritten by the include_role vars.
from ansible-podman-collections.
Related Issues (20)
- `AttributeError: 'list' object has no attribute 'get'` trying to use collection on recent Fedora (podman 5.0?) HOT 2
- Env in container exec are wrongly double quoted HOT 2
- podman_container: pasta network breaks idempotency
- podman_login: why are tlsverify certdir mutually exclusive? HOT 6
- podman_pod_info raises JSONDecodeError for non-existant pod HOT 3
- Pushing an image with `/` in the name to a remote registry does not work HOT 4
- Issues pulling images with similar tags (cannot pull one with a shorter left substring than a pre-existing image) HOT 2
- podman network: support for "--route" option HOT 1
- podman_container: support for "--pull" option HOT 4
- Absent state with quadlet should remove quadlet file as well as podman resource. HOT 3
- Wrong Podman Secret Creation Behavior HOT 3
- Support shm-size when specifying a pod
- Pod not idemponent when port is bound to 0.0.0.0/ maybe same as issue #679
- quadlet creates wrong healthcheck command for container HOT 1
- `podman_container`: using YAML dictionaries for options in the `secrets` parameter HOT 4
- Idempotency problem in collection version `1.15.0` when creating pods HOT 2
- podman_container is not idempotent due to cgroups, sdnotify and cidfile HOT 3
- Podman collection does not work on my development environment HOT 1
- Add examples of using connection plugin into documentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-podman-collections.