tech:notes_ansible_podman
Différences
Ci-dessous, les différences entre deux révisions de la page.
| tech:notes_ansible_podman [2026/03/23 14:08] – créée Jean-Baptiste | tech:notes_ansible_podman [2026/03/23 14:10] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| + | < | ||
| + | {{tag> | ||
| + | # Notes ansible podman | ||
| + | |||
| + | ~~~bash | ||
| + | ansible-doc -t connection -l | grep podman | ||
| + | ansible-doc -t inventory -l | grep podman | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | play.yml | ||
| + | ~~~yaml | ||
| + | #! / | ||
| + | --- | ||
| + | |||
| + | - name: test | ||
| + | hosts: all | ||
| + | connection: containers.podman.podman | ||
| + | |||
| + | tasks: | ||
| + | - name: Test | ||
| + | command: ls -l | ||
| + | ~~~ | ||
| + | |||
| + | `inventory.yml` | ||
| + | |||
| + | ~~~yaml | ||
| + | plugin: containers.podman.podman_containers | ||
| + | include_stopped: | ||
| + | # | ||
| + | # role: api | ||
| + | connection_plugin: | ||
| + | ~~~ | ||
| + | |||
| + | |||
| + | ~~~bash | ||
| + | ./plop.yml -i inventory.yml | ||
| + | ~~~ | ||
| + | |||
| + | Le conteneur doit avoir python3 | ||
| + | |||
| + | |||
| + | FIXME | ||
