Comments (3)
It's reproducible with a yaml file having multi documents like below, which is cited from podman-kube-play(1).
apiVersion: v1
kind: ConfigMap
metadata:
name: foo
data:
FOO: bar
---
apiVersion: v1
kind: Pod
metadata:
name: foobar
spec:
containers:
- name: container-1
image: foobar
envFrom:
- configMapRef:
name: foo
optional: false
I guess we need to use yaml.safe_load_all()
instead of yaml.safe_load()
:
ansible-podman-collections/plugins/modules/podman_play.py
Lines 189 to 194 in fea8b25
from ansible-podman-collections.
Can you please paste an example of multi-document yaml file?
from ansible-podman-collections.
Of course, every document that contains multiple --- yaml separator. For instance: https://kubernetes.io/docs/concepts/cluster-administration/manage-deployment/#organizing-resource-configurations
from ansible-podman-collections.
Related Issues (20)
- 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
- rootless always want to change the env HOT 4
- podman_network ignore dns when using quadlet HOT 4
- cli options from container command treated as podman arguments for idempotency HOT 2
- Unable to build custom image HOT 2
- containers.podman.podman_container is creating a systemd unit with invalid parameter for Podman 5.x
- idempotency broken with command in podman_container HOT 6
- podman_image build doesn't respect `arch` parameter HOT 1
- Quadlet filename set for podman_container but not podman_containers HOT 1
- Quadlet Label Value Truncation Due to Missing Quotes HOT 1
- Check Mode Actually Creates Quadlet Container File
- `tls_verify: false` not working in `containers.podman.podman_container` module HOT 1
- Proposal: Add podman_container_copy module for podman cp HOT 1
- `force_restart: true` ignores any changed parameters in container task HOT 6
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.